IVsSwatchClient.GetMetrics Method
Fills the struct with creation data for their swatch control.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function GetMetrics ( _
<OutAttribute> psm As VSSWATCHMETRICS() _
) As Integer
'用途
Dim instance As IVsSwatchClient
Dim psm As VSSWATCHMETRICS()
Dim returnValue As Integer
returnValue = instance.GetMetrics(psm)
int GetMetrics(
VSSWATCHMETRICS[] psm
)
int GetMetrics(
[InAttribute] [OutAttribute] array<VSSWATCHMETRICS>^ psm
)
abstract GetMetrics :
psm:VSSWATCHMETRICS[] byref -> int
function GetMetrics(
psm : VSSWATCHMETRICS[]
) : int
Parameters
- psm
Type: array<Microsoft.VisualStudio.Shell.Interop.VSSWATCHMETRICS[]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSwatchClient::GetMetrics(
[in, out] VSSWATCHMETRICS *psm
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.