Partager via


VsShellUtilities.ToDpiContext(__VSDPIMODE) Method

Definition

Converts a __VSDPIMODE to a DpiAwarenessContext. If an unsupported/unknown __VSDPIMODE is given, this method will throw a NotSupportedException.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Utilities::DpiAwarenessContext ToDpiContext(Microsoft::VisualStudio::Shell::Interop::__VSDPIMODE mode);
public static Microsoft.VisualStudio.Utilities.DpiAwarenessContext ToDpiContext (this Microsoft.VisualStudio.Shell.Interop.__VSDPIMODE mode);
static member ToDpiContext : Microsoft.VisualStudio.Shell.Interop.__VSDPIMODE -> Microsoft.VisualStudio.Utilities.DpiAwarenessContext
<Extension()>
Public Function ToDpiContext (mode As __VSDPIMODE) As DpiAwarenessContext

Parameters

Returns

Applies to