Share via


User.EnumOwnedObjects Method

Enumerates a list of object that the database user owns.

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 User
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[]
A Urn object array value that specifies the objects owned by the database user.

Remarks

Note   SQL Server database objects are owned by the schema.