当前位置: 首页>>代码示例>>C#>>正文


C# IDefinitionIdentity类代码示例

本文整理汇总了C#中IDefinitionIdentity的典型用法代码示例。如果您正苦于以下问题:C# IDefinitionIdentity类的具体用法?C# IDefinitionIdentity怎么用?C# IDefinitionIdentity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IDefinitionIdentity类属于命名空间,在下文中一共展示了IDefinitionIdentity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateFromName

 private void CreateFromName(ApplicationIdentity applicationIdentity)
 {
     if (applicationIdentity == null)
     {
         throw new ArgumentNullException("applicationIdentity");
     }
     this._applicationIdentity = applicationIdentity;
     IEnumDefinitionIdentity identity = this._applicationIdentity.Identity.EnumAppPath();
     this._definitionIdentities = new ArrayList(2);
     IDefinitionIdentity[] definitionIdentity = new IDefinitionIdentity[1];
     while (identity.Next(1, definitionIdentity) == 1)
     {
         this._definitionIdentities.Add(definitionIdentity[0]);
     }
     this._definitionIdentities.TrimToSize();
     if (this._definitionIdentities.Count <= 1)
     {
         throw new ArgumentException(Environment.GetResourceString("Argument_InvalidAppId"));
     }
     this._manifestPaths = null;
     this._manifests = null;
     this._actContext = IsolationInterop.CreateActContext(this._applicationIdentity.Identity);
     this._form = ContextForm.StoreBounded;
     this._appRunState = ApplicationStateDisposition.Undefined;
 }
开发者ID:randomize,项目名称:VimConfig,代码行数:25,代码来源:ActivationContext.cs

示例2: StoreOperationStageComponent

 public StoreOperationStageComponent(IDefinitionAppId app, IDefinitionIdentity comp, string Manifest)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationStageComponent));
     this.Flags = OpFlags.Nothing;
     this.Application = app;
     this.Component = comp;
     this.ManifestPath = Manifest;
 }
开发者ID:randomize,项目名称:VimConfig,代码行数:8,代码来源:StoreOperationStageComponent.cs

示例3: StoreOperationStageComponentFile

 public StoreOperationStageComponentFile(IDefinitionAppId App, IDefinitionIdentity Component, string CompRelPath, string SrcFile)
 {
     this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationStageComponentFile));
     this.Flags = OpFlags.Nothing;
     this.Application = App;
     this.Component = Component;
     this.ComponentRelativePath = CompRelPath;
     this.SourceFilePath = SrcFile;
 }
开发者ID:randomize,项目名称:VimConfig,代码行数:9,代码来源:StoreOperationStageComponentFile.cs

示例4: GetAssemblyIdentity

 public IDefinitionIdentity GetAssemblyIdentity(
     UInt32 Flags,
     IDefinitionIdentity DefinitionIdentity
     )
 {
     object o;
     System.Guid g = IsolationInterop.IID_IDefinitionIdentity;
     o=_pStore.GetAssemblyInformation(
         Flags,
         DefinitionIdentity,
         ref g);
     return (IDefinitionIdentity)o;
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:13,代码来源:isolationinterop.cs

示例5: CommitApplicationTrust

        private void CommitApplicationTrust(ApplicationIdentity applicationIdentity, string trustXml) { 
            StoreOperationMetadataProperty[] properties = new StoreOperationMetadataProperty[] {
                    new StoreOperationMetadataProperty(ClrPropertySet, ApplicationTrustProperty, trustXml) 
                }; 

            IEnumDefinitionIdentity idenum = applicationIdentity.Identity.EnumAppPath(); 
            IDefinitionIdentity[] asbId = new IDefinitionIdentity[1];
            IDefinitionIdentity deplId = null;
            if (idenum.Next(1, asbId) == 1)
                deplId = asbId[0]; 

            IDefinitionAppId defAppId = IsolationInterop.AppIdAuthority.CreateDefinition(); 
            defAppId.SetAppPath(1, new IDefinitionIdentity[] {deplId}); 
            defAppId.put_Codebase(applicationIdentity.CodeBase);
 
            using (StoreTransaction storeTxn = new StoreTransaction()) {
                storeTxn.Add(new StoreOperationSetDeploymentMetadata(defAppId, InstallReference, properties));
                RefreshStorePointer();
                m_pStore.Transact(storeTxn.Operations); 
            }
 
            m_appTrusts = null; // reset the app trusts in the collection. 
        }
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:23,代码来源:ApplicationTrust.cs

示例6: GetComponentManifest

 internal ICMS GetComponentManifest(IDefinitionIdentity component)
 { 
     object o;
     _actContext.GetComponentManifest(0, component, ref IsolationInterop.IID_ICMS, out o);
     return o as ICMS;
 } 
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:6,代码来源:activationcontext.cs

示例7: EnumSubcategories

 public StoreSubcategoryEnumeration EnumSubcategories(EnumSubcategoriesFlags Flags, IDefinitionIdentity CategoryMatch)
 {
     return this.EnumSubcategories(Flags, CategoryMatch, null);
 }
开发者ID:randomize,项目名称:VimConfig,代码行数:4,代码来源:Store.cs

示例8: EnumInstallationReferences

 public IEnumSTORE_ASSEMBLY_INSTALLATION_REFERENCE EnumInstallationReferences(EnumAssemblyInstallReferenceFlags Flags, IDefinitionIdentity Assembly)
 {
     Guid guidOfType = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_ASSEMBLY_INSTALLATION_REFERENCE));
     return (IEnumSTORE_ASSEMBLY_INSTALLATION_REFERENCE) this._pStore.EnumInstallationReferences((uint) Flags, Assembly, ref guidOfType);
 }
开发者ID:randomize,项目名称:VimConfig,代码行数:5,代码来源:Store.cs

示例9: DefinitionIdentity

        internal DefinitionIdentity(IDefinitionIdentity i)
        {
            if (i == null)
                throw new ArgumentNullException();

            _id = i;
        }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:isolationinterop.cs

示例10: EnumCategoryInstances

 public StoreCategoryInstanceEnumeration EnumCategoryInstances(EnumCategoryInstancesFlags Flags, IDefinitionIdentity Category, string SubCat)
 {
     System.Guid g = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_CATEGORY_INSTANCE));
     object o;
     o=_pStore.EnumCategoryInstances((UInt32)Flags, Category, SubCat, ref g);
     return new StoreCategoryInstanceEnumeration((IEnumSTORE_CATEGORY_INSTANCE)o);
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:isolationinterop.cs

示例11: EnumSubcategories

 public StoreSubcategoryEnumeration  EnumSubcategories(EnumSubcategoriesFlags Flags, IDefinitionIdentity Category, string SearchPattern)
 {
     System.Guid g = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_CATEGORY_SUBCATEGORY));
     object o;
     o=_pStore.EnumSubcategories((UInt32)Flags, Category, SearchPattern, ref g);
     return new StoreSubcategoryEnumeration((IEnumSTORE_CATEGORY_SUBCATEGORY)o);
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:isolationinterop.cs

示例12: QueryChangeID

 public UInt64 QueryChangeID(IDefinitionIdentity asm)
 {
     UInt64 ChangeId;
     ChangeId=_pStore.QueryChangeID(asm);
     return ChangeId;
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:6,代码来源:isolationinterop.cs

示例13: LockAssemblyPath

 public IPathLock LockAssemblyPath(IDefinitionIdentity asm)
 {
     string thePath;
     IntPtr theCookie;
     thePath=_pStore.LockAssemblyPath(0, asm, out theCookie);
     return new AssemblyPathLock(_pStore, theCookie, thePath);
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:7,代码来源:isolationinterop.cs

示例14: EnumInstallationReferences

 public IEnumSTORE_ASSEMBLY_INSTALLATION_REFERENCE EnumInstallationReferences(
         EnumAssemblyInstallReferenceFlags Flags,
         IDefinitionIdentity Assembly
         )
 {
     System.Guid g = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_ASSEMBLY_INSTALLATION_REFERENCE));
     object o;
     o=_pStore.EnumInstallationReferences((UInt32)Flags, Assembly, ref g);
     return (IEnumSTORE_ASSEMBLY_INSTALLATION_REFERENCE)o;
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:10,代码来源:isolationinterop.cs

示例15: EnumPrivateFiles

 public StoreAssemblyFileEnumeration EnumPrivateFiles(
         EnumApplicationPrivateFiles Flags,
         IDefinitionAppId Application,
         IDefinitionIdentity Assembly)
 {
     System.Guid g = IsolationInterop.GetGuidOfType(typeof(IEnumSTORE_ASSEMBLY_FILE));
     object o;
     o=_pStore.EnumPrivateFiles((UInt32)Flags, Application, Assembly, ref g);
     return new StoreAssemblyFileEnumeration((IEnumSTORE_ASSEMBLY_FILE)o);
 }
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:10,代码来源:isolationinterop.cs


注:本文中的IDefinitionIdentity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。