Item Property (String)

Vista Bridge Library

[This is preliminary documentation and is subject to change.]

Defines the indexer that supports accessing controls by name.

Namespace:  Microsoft.SDK.Samples.VistaBridge.Library
Assembly:  VistaBridgeLibrary (in VistaBridgeLibrary.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public T this[
	string name
] { get; }
Visual Basic (Declaration)
Public ReadOnly Default Property Item ( _
	name As String _
) As T
Visual C++
public:
property T default[String^ name] {
	T get (String^ name);
}

Parameters

name
Type: System..::.String

Remarks

Control names are case sensitive.

This indexer is useful when the dialog is created in XAML rather than constructed in code.

Exceptions

ExceptionCondition
System..::.ArgumentException The name cannot be null or a zero-length string.

See Also