Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property PropertyName As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As PropertySelector Dim value As String value = instance.PropertyName |
C# | |
---|---|
public string PropertyName {get;} |
Exception | Description |
---|---|
System.Exception | Unable to locate property 'x' on type 'y' |
System.InvalidCastException | Unable to convert value to type 'x' |
System.InvalidOperationException | This operator can only operate on properties of type 'string' |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family