Schema.EnumOwnedObjects Method ()

 

Applies To: SQL Server 2016 Preview

Enumerates a list of objects that are owned by the schema.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

public Urn[] EnumOwnedObjects()
public:
array<Urn^>^ EnumOwnedObjects()
member EnumOwnedObjects : unit -> Urn[]
Public Function EnumOwnedObjects As Urn()

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.Urn[]

An array of T:Microsoft.SqlServer.Management.Smo.Urn objects that specifies the objects that are owned by the schema.

Examples

Legacy Code Example

Creating, Altering, and Removing Schemas

See Also

Schema Class
Microsoft.SqlServer.Management.Smo Namespace
Understanding the Database Schemas
CREATE SCHEMA (Transact-SQL)

Return to top