Поделиться через


Свойство Trustworthy

The TRUSTWORTHY database property is used to indicate whether the instance of SQL Server trusts the database and the contents within it.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<DisplayDescriptionKeyAttribute("Database_TrustworthyDesc")> _
<DisplayNameKeyAttribute("Database_TrustworthyName")> _
Property Trustworthy As Boolean
    Get
    Set
'Применение
Dim instance As IDatabaseOptions
Dim value As Boolean

value = instance.Trustworthy

instance.Trustworthy = value
[DisplayDescriptionKeyAttribute("Database_TrustworthyDesc")]
[DisplayNameKeyAttribute("Database_TrustworthyName")]
bool Trustworthy { get; set; }
[DisplayDescriptionKeyAttribute(L"Database_TrustworthyDesc")]
[DisplayNameKeyAttribute(L"Database_TrustworthyName")]
property bool Trustworthy {
    bool get ();
    void set (bool value);
}
[<DisplayDescriptionKeyAttribute("Database_TrustworthyDesc")>]
[<DisplayNameKeyAttribute("Database_TrustworthyName")>]
abstract Trustworthy : bool with get, set
function get Trustworthy () : boolean
function set Trustworthy (value : boolean)

Значение свойства

Тип: System. . :: . .Boolean
A Boolean value specifying the Trustworthy property.

Замечания

By default, this setting is OFF