PropertyCollection.Item Property (String)

Gets an object in the collection by name.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Property 
    Get
'Usage
Dim instance As PropertyCollection 
Dim name As String 
Dim value As [Property]

value = instance(name)
public Property this[
    string name
] { get; }
public:
property Property^ default[String^ name] {
    Property^ get (String^ name);
}
member Item : Property
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • name
    Type: System.String
    A String value that specifies the name of the object in the collection.

Property Value

Type: Microsoft.SqlServer.Management.Smo.Property
An object value that represents the property.

Examples

Using Collections

See Also

Reference

PropertyCollection Class

Item Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Using Collections