共用方式為


OleDbProviderSettings.LevelZeroOnly 屬性

Gets or sets the Boolean property value that specifies whether all OLE DB providers are supported or just those that are compliant with the level 0 OLE DB interface.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property LevelZeroOnly As Boolean 
    Get 
    Set
'用途
Dim instance As OleDbProviderSettings 
Dim value As Boolean 

value = instance.LevelZeroOnly

instance.LevelZeroOnly = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool LevelZeroOnly { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property bool LevelZeroOnly {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member LevelZeroOnly : bool with get, set
function get LevelZeroOnly () : boolean 
function set LevelZeroOnly (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that specifies whether all OLE DB providers are supported or just those that are compliant with the level 0 OLE DB interface.If True, only level 0 OLE DB providers are allowed.If False (default), all levels of OLE DB provider are allowed.

範例

在 SMO 中使用連結的伺服器

請參閱

參考

OleDbProviderSettings 類別

Microsoft.SqlServer.Management.Smo 命名空間