Share via


IDiagnosticsDataservice.GetDiagnosticsDataAsFile method

Get a diagnostics data value as a file

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

Syntax

'Declaration
<WebGetAttribute(UriTemplate := "{CorrelationId}/{Name}/file?fileName={fileName}")> _
<OperationContractAttribute(Name := "GetDiagnosticsDataInCorrelationAsFile")> _
Function GetDiagnosticsDataAsFile ( _
    correlationId As String, _
    name As String, _
    fileName As String _
) As Stream
'Usage
Dim instance As IDiagnosticsDataservice
Dim correlationId As String
Dim name As String
Dim fileName As String
Dim returnValue As Stream

returnValue = instance.GetDiagnosticsDataAsFile(correlationId, _
    name, fileName)
[WebGetAttribute(UriTemplate = "{CorrelationId}/{Name}/file?fileName={fileName}")]
[OperationContractAttribute(Name = "GetDiagnosticsDataInCorrelationAsFile")]
Stream GetDiagnosticsDataAsFile(
    string correlationId,
    string name,
    string fileName
)

Parameters

Return value

Type: System.IO.Stream
The file stream

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

Microsoft.SharePoint.Diagnostics namespace