Propriété Rule.Parent

Gets or sets the Database object that is the parent of the Rule object.

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

Syntaxe

'Déclaration
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public Property Parent As Database 
    Get 
    Set
'Utilisation
Dim instance As Rule 
Dim value As Database 

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject)]
public Database Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject)]
public:
property Database^ Parent {
    Database^ get ();
    void set (Database^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject)>]
member Parent : Database with get, set
function get Parent () : Database 
function set Parent (value : Database)

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo.Database
A Database object that is the parent of the Rule object.

Exemples

Création, modification et suppression de règles

Voir aussi

Référence

Rule Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Règles

CREATE RULE (Transact-SQL)