本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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.
}
示例6: GetComponentManifest
internal ICMS GetComponentManifest(IDefinitionIdentity component)
{
object o;
_actContext.GetComponentManifest(0, component, ref IsolationInterop.IID_ICMS, out o);
return o as ICMS;
}
示例7: EnumSubcategories
public StoreSubcategoryEnumeration EnumSubcategories(EnumSubcategoriesFlags Flags, IDefinitionIdentity CategoryMatch)
{
return this.EnumSubcategories(Flags, CategoryMatch, null);
}
示例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);
}
示例9: DefinitionIdentity
internal DefinitionIdentity(IDefinitionIdentity i)
{
if (i == null)
throw new ArgumentNullException();
_id = i;
}
示例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);
}
示例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);
}
示例12: QueryChangeID
public UInt64 QueryChangeID(IDefinitionIdentity asm)
{
UInt64 ChangeId;
ChangeId=_pStore.QueryChangeID(asm);
return ChangeId;
}
示例13: LockAssemblyPath
public IPathLock LockAssemblyPath(IDefinitionIdentity asm)
{
string thePath;
IntPtr theCookie;
thePath=_pStore.LockAssemblyPath(0, asm, out theCookie);
return new AssemblyPathLock(_pStore, theCookie, thePath);
}
示例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;
}
示例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);
}