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, 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; }
[System.Security.SecurityCritical] // auto-generated public byte[] GetDeploymentProperty( GetPackagePropertyFlags Flags, IDefinitionAppId Deployment, StoreApplicationReference Reference, Guid PropertySet, string PropertyName ) { BLOB b = new BLOB(); byte[] retval = null; try { _pStore.GetDeploymentProperty( (UInt32)Flags, Deployment, ref Reference, ref PropertySet, PropertyName, out b); retval = new byte[b.Size]; Marshal.Copy(b.BlobData, retval, 0, (int)b.Size); } finally { b.Dispose(); } return retval; }