Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ViewCollection.Item Property

 

Applies To: SQL Server 2016 Preview

Gets a View object in the collection by name or by index number.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

NameDescription
System_CAPS_pubpropertyItem[Int32]

Gets a View object in the collection by index number.

System_CAPS_pubpropertyItem[String]

Gets a View object in the collection by name.

System_CAPS_pubpropertyItem[String, String]

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

Return to top

ViewCollection.Item Property (Int32)

Gets a View object in the collection by index number.

public View this[
	int index
] { get; }

Parameters

index
Type: System.Int32

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.View

A View object value that represents the view.

Legacy Code Example

Return to top

ViewCollection.Item Property (String)

Gets a View object in the collection by name.

public View this[
	string name
] { get; }

Parameters

name
Type: System.String

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.View

A View object value that represents the view.

Legacy Code Example

Return to top

ViewCollection.Item Property (String, String)

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

public View this[
	string name,
	string schema
] { get; }

Parameters

name
Type: System.String

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

schema
Type: System.String

A String value that specifies the name of the schema.

Property Value

Type: Microsoft.SqlServer.Management.Smo.View

A View object value that represents the view.

Legacy Code Example

Return to top
Show:
© 2015 Microsoft