public byte[] GetDeploymentProperty(GetPackagePropertyFlags Flags, System.Deployment.Internal.Isolation.IDefinitionAppId Deployment, System.Deployment.Internal.Isolation.StoreApplicationReference Reference, Guid PropertySet, string PropertyName) { System.Deployment.Internal.Isolation.BLOB blob = new System.Deployment.Internal.Isolation.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); }
public byte[] GetDeploymentProperty(GetPackagePropertyFlags Flags, System.Deployment.Internal.Isolation.IDefinitionAppId Deployment, System.Deployment.Internal.Isolation.StoreApplicationReference Reference, Guid PropertySet, string PropertyName) { System.Deployment.Internal.Isolation.BLOB blob = new System.Deployment.Internal.Isolation.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; }