SPDatabaseServiceInstance.EnsureSQLAuthUser method
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function EnsureSQLAuthUser ( _
username As String, _
securepassword As SecureString, _
asDatabaseAdmin As Boolean _
) As Boolean
'Usage
Dim instance As SPDatabaseServiceInstance
Dim username As String
Dim securepassword As SecureString
Dim asDatabaseAdmin As Boolean
Dim returnValue As Boolean
returnValue = instance.EnsureSQLAuthUser(username, _
securepassword, asDatabaseAdmin)
public bool EnsureSQLAuthUser(
string username,
SecureString securepassword,
bool asDatabaseAdmin
)
Parameters
- username
Type: System.String
- securepassword
Type: System.Security.SecureString
- asDatabaseAdmin
Type: System.Boolean
Return value
Type: System.Boolean
See also
Reference
SPDatabaseServiceInstance class