Share via


IDiagnosticsDataservice.GetMyScopes method

Get the scopes for the current user and address since a specific time

Namespace:  Microsoft.SharePoint.Diagnostics
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<OperationContractAttribute> _
<WebGetAttribute(UriTemplate := "My/Scopes?startTimeUtc={startTimeUtc}",  _
    ResponseFormat := WebMessageFormat.Json)> _
Function GetMyScopes ( _
    startTimeUtc As DateTime _
) As SPMonitoredScopeData()
'Usage
Dim instance As IDiagnosticsDataservice
Dim startTimeUtc As DateTime
Dim returnValue As SPMonitoredScopeData()

returnValue = instance.GetMyScopes(startTimeUtc)
[OperationContractAttribute]
[WebGetAttribute(UriTemplate = "My/Scopes?startTimeUtc={startTimeUtc}", 
    ResponseFormat = WebMessageFormat.Json)]
SPMonitoredScopeData[] GetMyScopes(
    DateTime startTimeUtc
)

Parameters

  • startTimeUtc
    Type: System.DateTime

    The start time in UTC. If not set, it will be set to be 1 hour before the current time.

Return value

Type: []
All scopes created for the requests sent from the current user and address and saved to the store after the given time

Examples

Request: https://server/_vti_bin/diagnosticsdata.svc/my/scopes?startTimeUtc=2010-08-25 20:00:00 See https://msdn.microsoft.com/en-us/library/bb412172.aspx for datetime format

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

Microsoft.SharePoint.Diagnostics namespace