System.Deployment.Internal.Isolation.BLOB.Dispose C# (CSharp) Méthode

Dispose() public méthode

public Dispose ( ) : void
Résultat void
        public void Dispose()
        {
            if (this.BlobData != IntPtr.Zero)
            {
                Marshal.FreeCoTaskMem(this.BlobData);
                this.BlobData = IntPtr.Zero;
            }
        }
    }

Usage Example

Exemple #1
0
        public byte[] GetDeploymentProperty(Store.GetPackagePropertyFlags Flags, IDefinitionAppId Deployment, StoreApplicationReference Reference, Guid PropertySet, string PropertyName)
        {
            BLOB blob = default(BLOB);

            byte[] array = null;
            try
            {
                this._pStore.GetDeploymentProperty((uint)Flags, Deployment, ref Reference, ref PropertySet, PropertyName, out blob);
                array = new byte[blob.Size];
                Marshal.Copy(blob.BlobData, array, 0, (int)blob.Size);
            }
            finally
            {
                blob.Dispose();
            }
            return(array);
        }
All Usage Examples Of System.Deployment.Internal.Isolation.BLOB::Dispose