Пример #1
0
 public StoreOperationSetDeploymentMetadata(System.Deployment.Internal.Isolation.IDefinitionAppId Deployment, System.Deployment.Internal.Isolation.StoreApplicationReference Reference, System.Deployment.Internal.Isolation.StoreOperationMetadataProperty[] SetProperties, System.Deployment.Internal.Isolation.StoreOperationMetadataProperty[] TestProperties)
 {
     this.Size       = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata));
     this.Flags      = OpFlags.Nothing;
     this.Deployment = Deployment;
     if (SetProperties != null)
     {
         this.PropertiesToSet  = MarshalProperties(SetProperties);
         this.cPropertiesToSet = new IntPtr(SetProperties.Length);
     }
     else
     {
         this.PropertiesToSet  = IntPtr.Zero;
         this.cPropertiesToSet = IntPtr.Zero;
     }
     if (TestProperties != null)
     {
         this.PropertiesToTest  = MarshalProperties(TestProperties);
         this.cPropertiesToTest = new IntPtr(TestProperties.Length);
     }
     else
     {
         this.PropertiesToTest  = IntPtr.Zero;
         this.cPropertiesToTest = IntPtr.Zero;
     }
     this.InstallerReference = Reference.ToIntPtr();
 }
Пример #2
0
 public StoreOperationUnpinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId app, System.Deployment.Internal.Isolation.StoreApplicationReference reference)
 {
     this.Size        = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationUnpinDeployment));
     this.Flags       = OpFlags.Nothing;
     this.Application = app;
     this.Reference   = reference.ToIntPtr();
 }
Пример #3
0
 public StoreOperationPinDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId AppId, System.Deployment.Internal.Isolation.StoreApplicationReference Ref)
 {
     this.Size           = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationPinDeployment));
     this.Flags          = OpFlags.NeverExpires;
     this.Application    = AppId;
     this.Reference      = Ref.ToIntPtr();
     this.ExpirationTime = 0L;
 }
 public StoreOperationInstallDeployment(System.Deployment.Internal.Isolation.IDefinitionAppId App, bool UninstallOthers, System.Deployment.Internal.Isolation.StoreApplicationReference reference)
 {
     this.Size        = (uint)Marshal.SizeOf(typeof(System.Deployment.Internal.Isolation.StoreOperationInstallDeployment));
     this.Flags       = OpFlags.Nothing;
     this.Application = App;
     if (UninstallOthers)
     {
         this.Flags |= OpFlags.UninstallOthers;
     }
     this.Reference = reference.ToIntPtr();
 }