次の方法で共有


SPDatabase.Username property

Gets or sets the user name that is used for SQL authentication login.

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

Syntax

'Declaration
Public Property Username As String
    Get
    Set
'Usage
Dim instance As SPDatabase
Dim value As String

value = instance.Username

instance.Username = value
public string Username { get; set; }

Property value

Type: System.String
A string that contains the user name.

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace