Dela via


IDatabaseOptions.Owner Property

Gets the the owner of the database.

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

Syntax

'Declaration
<DisplayNameKeyAttribute("Database_OwnerName")> _
<DisplayDescriptionKeyAttribute("Database_OwnerDesc")> _
ReadOnly Property Owner As String
    Get
'Usage
Dim instance As IDatabaseOptions
Dim value As String

value = instance.Owner
[DisplayNameKeyAttribute("Database_OwnerName")]
[DisplayDescriptionKeyAttribute("Database_OwnerDesc")]
string Owner { get; }
[DisplayNameKeyAttribute(L"Database_OwnerName")]
[DisplayDescriptionKeyAttribute(L"Database_OwnerDesc")]
property String^ Owner {
    String^ get ();
}
[<DisplayNameKeyAttribute("Database_OwnerName")>]
[<DisplayDescriptionKeyAttribute("Database_OwnerDesc")>]
abstract Owner : string
function get Owner () : String

Property Value

Type: System.String
A String value that specifies the database owner.