Beispiel #1
0
        protected string getName(string monikerString)
        {
            UCOMIMoniker moniker = null;
            UCOMIMoniker ppmkOut = null;
            string       str;

            try
            {
                int num;
                moniker = this.getAnyMoniker();
                moniker.ParseDisplayName(null, null, monikerString, out num, out ppmkOut);
                str = this.getName(moniker);
            }
            finally
            {
                if (moniker != null)
                {
                    Marshal.ReleaseComObject(moniker);
                }
                moniker = null;
                if (ppmkOut != null)
                {
                    Marshal.ReleaseComObject(ppmkOut);
                }
                ppmkOut = null;
            }
            return(str);
        }
Beispiel #2
0
        /// <summary> Get a moniker's human-readable name based on a moniker string. </summary>
        protected string GetName(string monikerString)
        {
            UCOMIMoniker parser  = null;
            UCOMIMoniker moniker = null;

            try
            {
                parser = GetAnyMoniker();
                int eaten;
                parser.ParseDisplayName(null, null, monikerString, out eaten, out moniker);
                return(GetName(parser));
            }
            finally
            {
                if (parser != null)
                {
                    Marshal.ReleaseComObject(parser);
                }
                parser = null;
                if (moniker != null)
                {
                    Marshal.ReleaseComObject(moniker);
                }
                moniker = null;
            }
        }
Beispiel #3
0
        // Token: 0x0600033D RID: 829 RVA: 0x000138B8 File Offset: 0x00011AB8
        protected string getName(string monikerString)
        {
            UCOMIMoniker ucomimoniker  = null;
            UCOMIMoniker ucomimoniker2 = null;
            string       name;

            try
            {
                ucomimoniker = this.getAnyMoniker();
                int num;
                ucomimoniker.ParseDisplayName(null, null, monikerString, out num, out ucomimoniker2);
                name = this.getName(ucomimoniker);
            }
            finally
            {
                if (ucomimoniker != null)
                {
                    Marshal.ReleaseComObject(ucomimoniker);
                }
                ucomimoniker = null;
                if (ucomimoniker2 != null)
                {
                    Marshal.ReleaseComObject(ucomimoniker2);
                }
                ucomimoniker2 = null;
            }
            return(name);
        }