DotMSN

MSNObject Members

MSNObject overview

Public Instance Constructors

MSNObject Overloaded. Initializes a new instance of the MSNObject class.

Public Instance Properties

Context The context as an url-encoded xml string.
ContextPlain The context as an xml string, not url-encoded.
Creator The local contact list owner
FileLocation [Deprecated, use LoadFile()] Gets or sets the file location. When a file is set the file data is immediately read in memory to extract the filehash. It will retain in memory afterwards.
Location The location of the object. This is a location on the hard-drive. Use relative paths. This is only a text string; na data is read in after setting this field. Use FileLocation for that purpose.
OriginalContext The original context string that was send by the remote contact
Sha The SHA1 encrypted hash of the datastream.
Size The total data size
Type The type of MSN Object

Public Instance Methods

CalculateChecksum Calculates the checksum for the entire MSN Object.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
LoadFile Gets or sets the file location. When a file is set the file data is immediately read in memory to extract the filehash. It will retain in memory afterwards.
OpenStream Returns the stream to read from. In case of an in-memory stream that stream is returned. In case of a filelocation a stream to the file will be opened and returned. The stream is not guaranteed to positioned at the beginning of the stream.
ParseContextOverloaded. Parses a context send by the remote contact and set the corresponding class variables. Context input is assumed to be not base64 encoded.
ToString (inherited from Object)Returns a String that represents the current Object.
UpdateInCollection Updates the msn object in the global MSNObjectCatalog.

Protected Instance Properties

DataStream The datastream to write to, or to read from

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.
GetEncodedString Returns the url-encoded xml string.
GetStreamHash Calculates the hash of datastream.
GetXmlString Returns the xml string.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

MSNObject Class | XihSolutions.DotMSN Namespace