SPDatabase.CreateFromFilePath method
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Sub CreateFromFilePath ( _
strDatabaseServer As String, _
strDatabaseName As String, _
strDatabaseUserName As String, _
strDatabasePassword As SecureString, _
strPrebakedPath As String, _
fCreateNewShare As Boolean _
)
'Usage
Dim strDatabaseServer As String
Dim strDatabaseName As String
Dim strDatabaseUserName As String
Dim strDatabasePassword As SecureString
Dim strPrebakedPath As String
Dim fCreateNewShare As BooleanSPDatabase.CreateFromFilePath(strDatabaseServer, _
strDatabaseName, strDatabaseUserName, _
strDatabasePassword, strPrebakedPath, _
fCreateNewShare)
public static void CreateFromFilePath(
string strDatabaseServer,
string strDatabaseName,
string strDatabaseUserName,
SecureString strDatabasePassword,
string strPrebakedPath,
bool fCreateNewShare
)
Parameters
- strDatabaseServer
Type: System.String
- strDatabaseName
Type: System.String
- strDatabaseUserName
Type: System.String
- strDatabasePassword
Type: System.Security.SecureString
- strPrebakedPath
Type: System.String
- fCreateNewShare
Type: System.Boolean