View.Owner Property

Definition

Important

This API is not CLS-compliant.

C#
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Design | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcReference(typeof(Microsoft.SqlServer.Management.Smo.User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", new System.String[] { "Parent.Parent.ConnectionContext.TrueName", "Parent.Name", "Owner" })]
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcReference(typeof(Microsoft.SqlServer.Management.Smo.DatabaseRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/Role[@Name = '{2}']", new System.String[] { "Parent.Parent.ConnectionContext.TrueName", "Parent.Name", "Owner" })]
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcReference(typeof(Microsoft.SqlServer.Management.Smo.ApplicationRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/ApplicationRole[@Name = '{2}']", new System.String[] { "Parent.Parent.ConnectionContext.TrueName", "Parent.Name", "Owner" })]
[System.CLSCompliant(false)]
public string Owner { get; set; }

Property Value

Attributes

Applies to

Producto Versiones
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0