IVsTestLog.LogIdleTime Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Logs idle time in seconds.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function LogIdleTime ( _
pszIdle As String _
) As Integer
'使用
Dim instance As IVsTestLog
Dim pszIdle As String
Dim returnValue As Integer
returnValue = instance.LogIdleTime(pszIdle)
int LogIdleTime(
string pszIdle
)
int LogIdleTime(
[InAttribute] String^ pszIdle
)
function LogIdleTime(
pszIdle : String
) : int
Parameters
pszIdle
Type: System.String[in] pszIdle format: ID<TAB>Idle Time in Seconds<TAB>Idle Start Time<TAB>String ID
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 IVsTestLog::LogIdleTime(
[in] LPSTR pszIdle
);
Permissions
- 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.