System.Deployment.Internal.Isolation.StoreApplicationReference.ToIntPtr C# (CSharp) Méthode

ToIntPtr() public méthode

public ToIntPtr ( ) : IntPtr
Résultat IntPtr
        public IntPtr ToIntPtr()
        {
            IntPtr ptr = Marshal.AllocCoTaskMem(Marshal.SizeOf(this));
            Marshal.StructureToPtr(this, ptr, false);
            return ptr;
        }

Usage Example

Exemple #1
0
 public StoreOperationUninstallDeployment(IDefinitionAppId appid, StoreApplicationReference AppRef)
 {
     this.Size        = (uint)Marshal.SizeOf(typeof(StoreOperationUninstallDeployment));
     this.Flags       = StoreOperationUninstallDeployment.OpFlags.Nothing;
     this.Application = appid;
     this.Reference   = AppRef.ToIntPtr();
 }
All Usage Examples Of System.Deployment.Internal.Isolation.StoreApplicationReference::ToIntPtr