System.Windows.Forms.ColorDialog.Instance Property

Gets the underlying window instance handle (HINSTANCE).

Syntax

protected virtual IntPtr Instance { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Note:

This method uses System.Security.Permissions.SecurityAction.LinkDemand to prevent it from being called from untrusted code; only the immediate caller is required to have System.Security.Permissions.SecurityPermissionAttribute.UnmanagedCode permission. If your code can be called from partially trusted code, do not pass user input to System.Runtime.InteropServices.Marshal class methods without validation. For important limitations on using the LinkDemand member, see Demand vs. LinkDemand.

This property also uses the System.Security.Permissions.SecurityAction.InheritanceDemand security attribute; to override this member, the derived class must have the CustomPermission permission.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0