Schema constructor (SearchServiceApplication, Guid, Guid)

Initializes a new instance of the Schema class.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub New ( _
    searchApplication As SearchServiceApplication, _
    tenantId As Guid, _
    siteCollectionId As Guid _
)
'Usage
Dim searchApplication As SearchServiceApplication
Dim tenantId As Guid
Dim siteCollectionId As Guid

Dim instance As New Schema(searchApplication, _
    tenantId, siteCollectionId)
public Schema(
    SearchServiceApplication searchApplication,
    Guid tenantId,
    Guid siteCollectionId
)

Parameters

  • tenantId
    Type: System.Guid

    The id of the tenant owning this schema, or Empty if the schema is not owned by any specific tenant.

  • siteCollectionId
    Type: System.Guid

    The id of the site collection owning this schema, or Empty if the schema is not owned by any specific site collection.

Exceptions

Exception Condition
ArgumentNullException

If any of the parameters are [null].

DatabaseException

If there was an error querying the database.

TenantSiteCollectionMismatchException

If this schema's site collection is not owned by this schema's tenant.

See also

Reference

Schema class

Schema members

Schema overload

Microsoft.Office.Server.Search.Administration namespace