Sets the property of this object to the specified value
Namespace: BrightstarDB.ClientAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
IDataObject SetProperty( string type, Object value, string langCode = null ) |
Visual Basic |
---|
Function SetProperty ( type As String, value As Object, Optional langCode As String = Nothing ) As IDataObject |
Visual C++ |
---|
IDataObject^ SetProperty( String^ type, Object^ value, String^ langCode = nullptr ) |
F# |
---|
abstract SetProperty : type : string * value : Object * ?langCode : string (* Defaults: let _langCode = defaultArg langCode null *) -> IDataObject |
Parameters
- type
- Type: System..::..String
The type of the property to set as a CURIE or URI string
- value
- Type: System..::..Object
The new value of the property
- langCode (Optional)
- Type: System..::..String
OPTIONAL: The language code for the new literal. This parameter is ignored if value is an IDataObject
Return Value
Type: IDataObjectThis IDataObject to allow chained calls
Remarks
This method will remove all existing properties of type type from this data object
and add a single replacement property of the same type with value as the property value.