RuleCollection.Item[String, String] RuleCollection.Item[String, String] RuleCollection.Item[String, String] Property

Definition

Overloads

Item[Int32] Item[Int32] Item[Int32]

Gets a Rule object in the collection by index number.

Item[String] Item[String] Item[String]

Gets a Rule object in the collection by name.

Item[String, String] Item[String, String] Item[String, String]

Gets a Rule object in the collection by name.

Item[Int32] Item[Int32] Item[Int32]

Gets a Rule object in the collection by index number.

public:
 property Microsoft::SqlServer::Management::Smo::Rule ^ default[int] { Microsoft::SqlServer::Management::Smo::Rule ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.Rule this[int index] { get; }
Default Public ReadOnly Property Item(index As Integer) As Rule
Parameters
index
Int32 Int32 Int32

An Int32 value that specifies the position of the Rule object in the RuleCollection collection.

Property Value

A Rule object value that represents the rule.

Examples

Using Collections

Item[String] Item[String] Item[String]

Gets a Rule object in the collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::Rule ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::Rule ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.Rule this[string name] { get; }
Default Public ReadOnly Property Item(name As String) As Rule
Parameters
name
String String String

A String value that specifies the name of the Rule object in the RuleCollection collection.

Property Value

A Rule object value that represents the rule.

Examples

Using Collections

Item[String, String] Item[String, String] Item[String, String]

Gets a Rule object in the collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::Rule ^ default[System::String ^, System::String ^] { Microsoft::SqlServer::Management::Smo::Rule ^ get(System::String ^ name, System::String ^ schema); };
public Microsoft.SqlServer.Management.Smo.Rule this[string name, string schema] { get; }
Default Public ReadOnly Property Item(name As String, schema As String) As Rule
Parameters
name
String String String

A String value that specifies the name of the Rule object in the RuleCollection collection.

schema
String String String

A String value that specifies the schema of the Rule object.

Property Value

A Rule object value that represents the rule.

Examples

Using Collections

Applies to