System.Deployment.Internal.Isolation.Store.GetDeploymentProperty C# (CSharp) Method

GetDeploymentProperty() public method

public GetDeploymentProperty ( GetPackagePropertyFlags Flags, IDefinitionAppId Deployment, StoreApplicationReference Reference, Guid PropertySet, string PropertyName ) : byte[]
Flags GetPackagePropertyFlags
Deployment IDefinitionAppId
Reference StoreApplicationReference
PropertySet Guid
PropertyName string
return byte[]
        public byte[] GetDeploymentProperty(GetPackagePropertyFlags Flags, IDefinitionAppId Deployment, StoreApplicationReference Reference, Guid PropertySet, string PropertyName)
        {
            BLOB blob = new BLOB();
            byte[] destination = null;
            try
            {
                this._pStore.GetDeploymentProperty((uint) Flags, Deployment, ref Reference, ref PropertySet, PropertyName, out blob);
                destination = new byte[blob.Size];
                Marshal.Copy(blob.BlobData, destination, 0, (int) blob.Size);
            }
            finally
            {
                blob.Dispose();
            }
            return destination;
        }