Share via


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

  • collation
    Type: System.String

    The database level collation setting.

  • siteId
    Type: System.Guid

    The ID of the site where the package is being installed

  • siteSubscriptionId
    Type: System.Guid

    The ID of the site subscription where the package is being installed

  • appInstanceId
    Type: System.Guid

    The unique ID of the app

  • timeZoneId
    Type: System.String

    The time zone identifier that specifies the timezone of the app

  • databaseSize
    Type: System.String

    The maximum size of the database

See also

Reference

DatabaseContext class

DatabaseContext members

DatabaseContext overload

Microsoft.SharePoint.Administration.DatabaseProvider namespace