MarshalProperties() private static method

private static MarshalProperties ( System.Deployment.Internal.Isolation.StoreOperationMetadataProperty Props ) : IntPtr
Props System.Deployment.Internal.Isolation.StoreOperationMetadataProperty
return System.IntPtr
示例#1
0
 public StoreOperationSetDeploymentMetadata(IDefinitionAppId Deployment, StoreApplicationReference Reference, StoreOperationMetadataProperty[] SetProperties, StoreOperationMetadataProperty[] TestProperties)
 {
     this.Size       = (uint)Marshal.SizeOf(typeof(StoreOperationSetDeploymentMetadata));
     this.Flags      = StoreOperationSetDeploymentMetadata.OpFlags.Nothing;
     this.Deployment = Deployment;
     if (SetProperties != null)
     {
         this.PropertiesToSet  = StoreOperationSetDeploymentMetadata.MarshalProperties(SetProperties);
         this.cPropertiesToSet = new IntPtr(SetProperties.Length);
     }
     else
     {
         this.PropertiesToSet  = IntPtr.Zero;
         this.cPropertiesToSet = IntPtr.Zero;
     }
     if (TestProperties != null)
     {
         this.PropertiesToTest  = StoreOperationSetDeploymentMetadata.MarshalProperties(TestProperties);
         this.cPropertiesToTest = new IntPtr(TestProperties.Length);
     }
     else
     {
         this.PropertiesToTest  = IntPtr.Zero;
         this.cPropertiesToTest = IntPtr.Zero;
     }
     this.InstallerReference = Reference.ToIntPtr();
 }