ColorDialog::Instance Property
This API supports the product infrastructure and is not intended to be used directly from your code.
Gets the underlying window instance handle (HINSTANCE).
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected: property IntPtr Instance { [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] [SecurityPermissionAttribute(SecurityAction::InheritanceDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] virtual IntPtr get(); }
Property Value
Type: System::IntPtrAn IntPtr that contains the HINSTANCE value of the window handle.
Note |
|---|
This method uses SecurityAction::LinkDemand to prevent it from being called from untrusted code; only the immediate caller is required to have SecurityPermissionAttribute::UnmanagedCode permission. If your code can be called from partially trusted code, do not pass user input to Marshal class methods without validation. For important limitations on using the LinkDemand member, see Demand vs. LinkDemand. |
This property also uses the SecurityAction::InheritanceDemand security attribute; to override this member, the derived class must have the CustomPermission permission.
for operating with unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode
Available since 1.1
