DatabaseContext constructor (ServerContext, String, PackageSource, String, String, Guid, Guid, Guid, String, String)
NOTE: This API is now obsolete.
Initializes a new instance of DatabaseContext with a ServerContext, database name, package source, package type and collation.
Namespace: Microsoft.SharePoint.Administration.DatabaseProvider
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ObsoleteAttribute("Specify the installationLocaleId parameter.")> _
Public Sub New ( _
serverContext As ServerContext, _
databaseName As String, _
packageSource As PackageSource, _
packageType As String, _
collation As String, _
siteId As Guid, _
siteSubscriptionId As Guid, _
appInstanceId As Guid, _
timeZoneId As String, _
databaseSize As String _
)
'Usage
Dim serverContext As ServerContext
Dim databaseName As String
Dim packageSource As PackageSource
Dim packageType As String
Dim collation As String
Dim siteId As Guid
Dim siteSubscriptionId As Guid
Dim appInstanceId As Guid
Dim timeZoneId As String
Dim databaseSize As String
Dim instance As New DatabaseContext(serverContext, _
databaseName, packageSource, packageType, _
collation, siteId, siteSubscriptionId, _
appInstanceId, timeZoneId, databaseSize)
[ObsoleteAttribute("Specify the installationLocaleId parameter.")]
public DatabaseContext(
ServerContext serverContext,
string databaseName,
PackageSource packageSource,
string packageType,
string collation,
Guid siteId,
Guid siteSubscriptionId,
Guid appInstanceId,
string timeZoneId,
string databaseSize
)
Parameters
serverContext
Type: Microsoft.SharePoint.Administration.DatabaseProvider.ServerContextThe server context
databaseName
Type: System.StringThe database name
packageSource
Type: Microsoft.SharePoint.Administration.DatabaseProvider.PackageSourceThe source of the package
packageType
Type: System.StringThe type of the package
collation
Type: System.StringThe database level collation setting.
siteId
Type: System.GuidThe ID of the site where the package is being installed
siteSubscriptionId
Type: System.GuidThe ID of the site subscription where the package is being installed
appInstanceId
Type: System.GuidThe unique ID of the app
timeZoneId
Type: System.StringThe time zone identifier that specifies the timezone of the app
databaseSize
Type: System.StringThe maximum size of the database
See also
Reference
Microsoft.SharePoint.Administration.DatabaseProvider namespace