| ConvertToMSBuildFormatSetProperty Method |
This is used to set the named property to the specified value
using Reflection.
Namespace: SandcastleBuilder.Utils.ConversionAssembly: SandcastleBuilder.Utils (in SandcastleBuilder.Utils.dll) Version: 2014.11.22.0
Syntax protected Object SetProperty(
string name,
string value
)
Protected Function SetProperty (
name As String,
value As String
) As Object
protected:
Object^ SetProperty(
String^ name,
String^ value
)
member SetProperty :
name : string *
value : string -> Object
Parameters
- name
- Type: SystemString
The name of the property to set - value
- Type: SystemString
The value to which it is set
Return Value
Type:
ObjectThe parsed object value to which the property was set.
Exceptions Exception | Condition |
---|
ArgumentNullException | This is thrown if the
name parameter is null or an empty string. |
BuilderException | This is thrown if an error
occurs while trying to set the named property. |
Remarks Property name matching is case insensitive as are the
values themselves. This is used to allow setting of simple project
properties (non-collection) using command line parameters in the
console mode builder.
See Also