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(); }
public void Destroy() { if (this.PropertiesToSet != IntPtr.Zero) { StoreOperationSetDeploymentMetadata.DestroyProperties(this.PropertiesToSet, (ulong)this.cPropertiesToSet.ToInt64()); this.PropertiesToSet = IntPtr.Zero; this.cPropertiesToSet = IntPtr.Zero; } if (this.PropertiesToTest != IntPtr.Zero) { StoreOperationSetDeploymentMetadata.DestroyProperties(this.PropertiesToTest, (ulong)this.cPropertiesToTest.ToInt64()); this.PropertiesToTest = IntPtr.Zero; this.cPropertiesToTest = IntPtr.Zero; } if (this.InstallerReference != IntPtr.Zero) { StoreApplicationReference.Destroy(this.InstallerReference); this.InstallerReference = IntPtr.Zero; } }
public void Add(StoreOperationSetDeploymentMetadata o) { this._list.Add(o); }
public void Add(StoreOperationSetDeploymentMetadata o) { this._list.Add(o); }
public StoreOperationSetDeploymentMetadata(IDefinitionAppId Deployment, StoreApplicationReference Reference, StoreOperationMetadataProperty[] SetProperties) { this = new StoreOperationSetDeploymentMetadata(Deployment, Reference, SetProperties, (StoreOperationMetadataProperty[])null); }