共用方式為


UserInstancesEnabled 屬性

Gets the Boolean value that determines whether user instances are enabled.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayNameKeyAttribute("IServerConfigurationFacet_UserInstancesEnabledName")> _
<DisplayDescriptionKeyAttribute("IServerConfigurationFacet_UserInstancesEnabledDesc")> _
ReadOnly Property UserInstancesEnabled As Boolean
    Get
'用途
Dim instance As IServerSetupFacet
Dim value As Boolean

value = instance.UserInstancesEnabled
[DisplayNameKeyAttribute("IServerConfigurationFacet_UserInstancesEnabledName")]
[DisplayDescriptionKeyAttribute("IServerConfigurationFacet_UserInstancesEnabledDesc")]
bool UserInstancesEnabled { get; }
[DisplayNameKeyAttribute(L"IServerConfigurationFacet_UserInstancesEnabledName")]
[DisplayDescriptionKeyAttribute(L"IServerConfigurationFacet_UserInstancesEnabledDesc")]
property bool UserInstancesEnabled {
    bool get ();
}
[<DisplayNameKeyAttribute("IServerConfigurationFacet_UserInstancesEnabledName")>]
[<DisplayDescriptionKeyAttribute("IServerConfigurationFacet_UserInstancesEnabledDesc")>]
abstract UserInstancesEnabled : bool
function get UserInstancesEnabled () : boolean

屬性值

型別:System. . :: . .Boolean
A Boolean value that specifies whether user instances are enabled.
If True, user instances are enabled. Otherwise, False.

範例

設定屬性