Share via


Propriété Trustworthy

La propriété de base de données TRUSTWORTHY permet d'indiquer si l'instance de SQL Server 2005 fait confiance à la base de données et à son contenu.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property Trustworthy As Boolean
    Get
    Set
'Utilisation
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)

Valeur de propriété

Type : System. . :: . .Boolean
Objet Boolean qui indique si la propriété digne de confiance est activée.

Implémente

IDatabaseOptions. . :: . .Trustworthy

Notes

Be default, this setting is OFF.