System.Deployment.Internal.Isolation.IsolationInterop.GetGuidOfType C# (CSharp) Méthode

GetGuidOfType() static private méthode

static private GetGuidOfType ( Type type ) : System.Guid
type System.Type
Résultat System.Guid
        internal static Guid GetGuidOfType(Type type)
        {
            GuidAttribute attribute = (GuidAttribute) Attribute.GetCustomAttribute(type, typeof(GuidAttribute), false);
            return new Guid(attribute.Value);
        }

Usage Example

Exemple #1
0
        public StoreSubcategoryEnumeration EnumSubcategories(Store.EnumSubcategoriesFlags Flags, IDefinitionIdentity Category, string SearchPattern)
        {
            Guid   guidOfType = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_CATEGORY_SUBCATEGORY));
            object obj        = this._pStore.EnumSubcategories((uint)Flags, Category, SearchPattern, ref guidOfType);

            return(new StoreSubcategoryEnumeration((IEnumSTORE_CATEGORY_SUBCATEGORY)obj));
        }
All Usage Examples Of System.Deployment.Internal.Isolation.IsolationInterop::GetGuidOfType