Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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;
        }