Share via


Schema.EnumOwnedObjects Method

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

'Declaration
Public Function EnumOwnedObjects As Urn()
'Usage
Dim instance As Schema 
Dim returnValue As Urn()

returnValue = instance.EnumOwnedObjects()
public Urn[] EnumOwnedObjects()
public:
array<Urn^>^ EnumOwnedObjects()
member EnumOwnedObjects : unit -> Urn[] 
public function EnumOwnedObjects() : Urn[]

Return Value

Type: array<Microsoft.SqlServer.Management.Sdk.Sfc.Urn[]
An array of Urn objects that specifies the objects that are owned by the schema.

Examples

Creating, Altering, and Removing Schemas

See Also

Reference

Schema Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Understanding the Database Schemas

CREATE SCHEMA (Transact-SQL)