Database.Trustworthy 属性

Gets or sets a value that indicates whether the instance of SQL Server 2005 trusts the database and the contents within it.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property Trustworthy As Boolean 
    Get 
    Set
用法
Dim instance As Database 
Dim value As Boolean 

value = instance.Trustworthy

instance.Trustworthy = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool Trustworthy { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property bool Trustworthy {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract Trustworthy : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override Trustworthy : bool with get, set
final function get Trustworthy () : boolean 
final function set Trustworthy (value : boolean)

属性值

类型:System.Boolean
true if the trustworthy property is enabled; otherwise, false.

实现

IDatabaseOptions.Trustworthy

注释

By default, this setting is OFF.

请参阅

参考

Database 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

使用数据库对象

设置属性

创建、更改和删除数据库