ServiceRecordBuilderAddCustomAttribute(ServiceAttributeId, ElementType, Object) Method

Add a custom attribute of simple type.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public void AddCustomAttribute(
	ServiceAttributeId id,
	ElementType elementType,
	Object value
)

Parameters

id  ServiceAttributeId
The Attribute Id as a ServiceAttributeId.
elementType  ElementType
The type of the element as an ElementType.
value  Object
The value for the new element.

Remarks

If the elementType is a numerical type then this is equivalent to using CreateNumericalServiceElement(ElementType, Object) otherwise the value is used directly in creating the ServiceElement.

See Also