public DefinitionIdentity(System.Deployment.Application.ReferenceIdentity refId)
 {
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.CreateDefinition();
     foreach (System.Deployment.Internal.Isolation.IDENTITY_ATTRIBUTE identity_attribute in refId.Attributes)
     {
         this[identity_attribute.Namespace, identity_attribute.Name] = identity_attribute.Value;
     }
 }
Beispiel #2
0
 public DefinitionIdentity(System.Deployment.Application.ReferenceIdentity refId)
 {
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.CreateDefinition();
     foreach (System.Deployment.Internal.Isolation.IDENTITY_ATTRIBUTE identity_attribute in refId.Attributes)
     {
         this[identity_attribute.Namespace, identity_attribute.Name] = identity_attribute.Value;
     }
 }
 public DefinitionAppId(string codebase, params System.Deployment.Application.DefinitionIdentity[] idPath)
 {
     uint length = (uint) idPath.Length;
     System.Deployment.Internal.Isolation.IDefinitionIdentity[] definitionIdentity = new System.Deployment.Internal.Isolation.IDefinitionIdentity[length];
     for (uint i = 0; i < length; i++)
     {
         definitionIdentity[i] = idPath[i].ComPointer;
     }
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.AppIdAuthority.CreateDefinition();
     this._idComPtr.put_Codebase(codebase);
     this._idComPtr.SetAppPath(length, definitionIdentity);
 }
        public DefinitionAppId(string codebase, params System.Deployment.Application.DefinitionIdentity[] idPath)
        {
            uint length = (uint)idPath.Length;

            System.Deployment.Internal.Isolation.IDefinitionIdentity[] definitionIdentity = new System.Deployment.Internal.Isolation.IDefinitionIdentity[length];
            for (uint i = 0; i < length; i++)
            {
                definitionIdentity[i] = idPath[i].ComPointer;
            }
            this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.AppIdAuthority.CreateDefinition();
            this._idComPtr.put_Codebase(codebase);
            this._idComPtr.SetAppPath(length, definitionIdentity);
        }
Beispiel #5
0
 public DefinitionIdentity(AssemblyName asmName)
 {
     this._idComPtr  = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.CreateDefinition();
     this["name"]    = asmName.Name;
     this["version"] = asmName.Version.ToString();
     if (asmName.CultureInfo != null)
     {
         this["culture"] = asmName.CultureInfo.Name;
     }
     byte[] publicKeyToken = asmName.GetPublicKeyToken();
     if ((publicKeyToken != null) && (publicKeyToken.Length > 0))
     {
         this["publicKeyToken"] = HexString.FromBytes(publicKeyToken);
     }
 }
 public DefinitionIdentity(AssemblyName asmName)
 {
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.CreateDefinition();
     this["name"] = asmName.Name;
     this["version"] = asmName.Version.ToString();
     if (asmName.CultureInfo != null)
     {
         this["culture"] = asmName.CultureInfo.Name;
     }
     byte[] publicKeyToken = asmName.GetPublicKeyToken();
     if ((publicKeyToken != null) && (publicKeyToken.Length > 0))
     {
         this["publicKeyToken"] = HexString.FromBytes(publicKeyToken);
     }
 }
 private System.Deployment.Application.DefinitionIdentity PathComponent(uint index)
 {
     System.Deployment.Internal.Isolation.IEnumDefinitionIdentity o = null;
     System.Deployment.Application.DefinitionIdentity identity2;
     try
     {
         o = this._idComPtr.EnumAppPath();
         if (index > 0)
         {
             o.Skip(index);
         }
         System.Deployment.Internal.Isolation.IDefinitionIdentity[] definitionIdentity = new System.Deployment.Internal.Isolation.IDefinitionIdentity[1];
         identity2 = (o.Next(1, definitionIdentity) == 1) ? new System.Deployment.Application.DefinitionIdentity(definitionIdentity[0]) : null;
     }
     finally
     {
         if (o != null)
         {
             Marshal.ReleaseComObject(o);
         }
     }
     return identity2;
 }
 private System.Deployment.Application.DefinitionIdentity PathComponent(uint index)
 {
     System.Deployment.Internal.Isolation.IEnumDefinitionIdentity o = null;
     System.Deployment.Application.DefinitionIdentity             identity2;
     try
     {
         o = this._idComPtr.EnumAppPath();
         if (index > 0)
         {
             o.Skip(index);
         }
         System.Deployment.Internal.Isolation.IDefinitionIdentity[] definitionIdentity = new System.Deployment.Internal.Isolation.IDefinitionIdentity[1];
         identity2 = (o.Next(1, definitionIdentity) == 1) ? new System.Deployment.Application.DefinitionIdentity(definitionIdentity[0]) : null;
     }
     finally
     {
         if (o != null)
         {
             Marshal.ReleaseComObject(o);
         }
     }
     return(identity2);
 }
Beispiel #9
0
 public DefinitionIdentity(string text)
 {
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.TextToDefinition(0, text);
 }
Beispiel #10
0
 public DefinitionIdentity(System.Deployment.Internal.Isolation.IDefinitionIdentity idComPtr)
 {
     this._idComPtr = idComPtr;
 }
Beispiel #11
0
 public DefinitionIdentity()
 {
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.CreateDefinition();
 }
 public DefinitionIdentity(string text)
 {
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.TextToDefinition(0, text);
 }
 public DefinitionIdentity(System.Deployment.Internal.Isolation.IDefinitionIdentity idComPtr)
 {
     this._idComPtr = idComPtr;
 }
 public DefinitionIdentity()
 {
     this._idComPtr = System.Deployment.Internal.Isolation.IsolationInterop.IdentityAuthority.CreateDefinition();
 }