共用方式為


SPGlobalAdmin.UseNtAuthenticationForDatabase Property

NOTE: This API is now obsolete.

The authentication mode can vary for each database, and a database uses NT authentication if the Username property is null. (In Windows SharePoint Services 2.0, the UseNtAuthenticationForDatabase property got a Boolean value that indicated whether Microsoft Windows NT authentication is used for the database, and is maintained for backward compatibility.)

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

Syntax

'Declaration
<ObsoleteAttribute("The authentication mode can now vary for each database.  A database will use NT authentication if its Username property is null.",  _
    False)> _
Public ReadOnly Property UseNtAuthenticationForDatabase As Boolean
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As Boolean

value = instance.UseNtAuthenticationForDatabase
[ObsoleteAttribute("The authentication mode can now vary for each database.  A database will use NT authentication if its Username property is null.", 
    false)]
public bool UseNtAuthenticationForDatabase { get; }

Property Value

Type: System.Boolean
true if Windows NT authentication is used; otherwise, false.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace