HostAdapter.GetProperty Method
Returns the value of the specified property.
Namespace: Microsoft.VisualStudio.Tools.Applications.DesignTime
Assembly: Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0.dll)
Syntax
'Declaration
Public Function GetProperty ( _
name As String _
) As String
'Usage
Dim instance As HostAdapter
Dim name As String
Dim returnValue As String
returnValue = instance.GetProperty(name)
public string GetProperty(
string name
)
public:
String^ GetProperty(
String^ name
)
public function GetProperty(
name : String
) : String
Parameters
name
Type: System.StringThe name of the property for which you want the value.
Return Value
Type: System.String
The value of the specified property.
Exceptions
Exception | Condition |
---|---|
InvalidPropertyException | The property name is not valid. |
Remarks
This method retrieves properties from the <HostProperties> section of the project file.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Tools.Applications.DesignTime Namespace