Share via


ServerContext.MasterCredential property

Gets or sets the master credential to be used when executing commands on the server. If a null reference (Nothing in Visual Basic), then the implementer should look up the credential internally.

Namespace:  Microsoft.SharePoint.Administration.DatabaseProvider
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property MasterCredential As NetworkCredential
    Get
    Set
'Usage
Dim instance As ServerContext
Dim value As NetworkCredential

value = instance.MasterCredential

instance.MasterCredential = value
public NetworkCredential MasterCredential { get; set; }

Property value

Type: System.Net.NetworkCredential

See also

Reference

ServerContext class

ServerContext members

Microsoft.SharePoint.Administration.DatabaseProvider namespace