共用方式為


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 命名空間

其他資源

使用資料庫物件

設定屬性

建立、改變和移除資料庫