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