BlueLibs documentation

OBEXHeadersContainer Methods

The methods of the OBEXHeadersContainer class are listed below. For a complete list of OBEXHeadersContainer class members, see the OBEXHeadersContainer Members topic.

Public Static (Shared) Methods

Equals (inherited from Object) Determines whether the specified Object instances are considered equal.
ReferenceEquals (inherited from Object) Determines whether the specified Object instances are the same instance.

Public Instance Methods

AddHeader adds new header to the container
AddHeaders Adds all headers contained by this command to the headers of the container. Usually this is the simplest way to construct new OBEX object from an OBEX command
ClearHeaders removes all headers from the conatiner
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetBodyHeaders returns data bytes form body/endofbody headers kept in the container
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetHeaderOverloaded. returns the first header of given type
GetLengthHeader returns value of OBEX length header
GetType (inherited from Object) Gets the Type of the current instance.
HasHeader Checks if the container has a header of given type
RemoveHeader removes all headers of type SearchFor
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetNameHeader returns string that is kept in a NAME header
GetSortedHeaders returns array of the headers kept in the container no sort is done in the base class, override if you need sorted headers array
GetTypeHeader returns string that is kept in a TYPE header
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
SetBodyHeaders Constructs new body/endbody headers from the raw data passed and adds them to the container's headers if any previous Body/EndBody headers are present, they are removed
SetHeader sets new value to a header of this type in the container. THis is simplest way to rename OBEX object for example
SetLengthHeader sets the value of OBEX length header, if noe is found new one is added
SetNameHeader if there is Name header already its value is changed, else new one is added
SetTypeHeader if there is Type header already its value is changed, else new one is added

See Also

OBEXHeadersContainer Class | BlueLibs.OBEX Namespace