System.Deployment.Internal.Isolation.StoreApplicationReference.Destroy C# (CSharp) Méthode

Destroy() public static méthode

public static Destroy ( IntPtr ip ) : void
ip System.IntPtr
Résultat void
        public static void Destroy(IntPtr ip)
        {
            if (ip != IntPtr.Zero)
            {
                Marshal.DestroyStructure(ip, typeof(StoreApplicationReference));
                Marshal.FreeCoTaskMem(ip);
            }
        }
        [Flags]

Usage Example

Exemple #1
0
 public void Destroy()
 {
     if (this.PropertiesToSet != IntPtr.Zero)
     {
         StoreOperationSetDeploymentMetadata.DestroyProperties(this.PropertiesToSet, (ulong)this.cPropertiesToSet.ToInt64());
         this.PropertiesToSet  = IntPtr.Zero;
         this.cPropertiesToSet = IntPtr.Zero;
     }
     if (this.PropertiesToTest != IntPtr.Zero)
     {
         StoreOperationSetDeploymentMetadata.DestroyProperties(this.PropertiesToTest, (ulong)this.cPropertiesToTest.ToInt64());
         this.PropertiesToTest  = IntPtr.Zero;
         this.cPropertiesToTest = IntPtr.Zero;
     }
     if (this.InstallerReference != IntPtr.Zero)
     {
         StoreApplicationReference.Destroy(this.InstallerReference);
         this.InstallerReference = IntPtr.Zero;
     }
 }
All Usage Examples Of System.Deployment.Internal.Isolation.StoreApplicationReference::Destroy