Compartilhar via


SPDiagnosticsServiceBase Constructor (String, SPFarm)

Initializes a new instance of the SPDiagnosticsServiceBase class by using the specified parameters.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Sub New ( _
    name As String, _
    parent As SPFarm _
)
'Usage
Dim name As String
Dim parent As SPFarm

Dim instance As New SPDiagnosticsServiceBase(name, parent)
protected SPDiagnosticsServiceBase(
    string name,
    SPFarm parent
)

Parameters

  • name
    Type: System.String

    The name of the new diagnostic service. This parameter must be String.Empty.

Remarks

It is not recommended to directly call this constructor. Instead, you should implement a local property on the derived class that in turn calls the GetLocal method.

See Also

Reference

SPDiagnosticsServiceBase Class

SPDiagnosticsServiceBase Members

SPDiagnosticsServiceBase Overload

Microsoft.SharePoint.Administration Namespace