ViewCollection.Item[String, String] ViewCollection.Item[String, String] ViewCollection.Item[String, String] Property

Definition

Overloads

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

Gets a View object in the collection by index number.

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

Gets a View object in the collection by name.

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

Gets a View object in the collection by name and schema.

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

Gets a View object in the collection by index number.

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

An Int32 value that specifies the position of the View object in the ViewCollection collection.

Property Value

A View object value that represents the view.

Examples

Using Collections

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

Gets a View object in the collection by name.

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

A String value that specifies the name of the View object in the ViewCollection collection.

Property Value

A View object value that represents the view.

Examples

Using Collections

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

Gets a View object in the collection by name and schema.

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

A String value that specifies the name of the View object in the ViewCollection collection.

schema
String String String

A String value that specifies the name of the schema.

Property Value

A View object value that represents the view.

Examples

Using Collections

Applies to