C# Class iwantedue.OutlookStorage

Inheritance: IDisposable
Afficher le fichier Open project: Developex/Outlook-Sync-Webservice Class Usage Examples

Méthodes publiques

Свойство Type Description
streamStatistics ComTypes.STATSTG>.Dictionary
subStorageStatistics ComTypes.STATSTG>.Dictionary

Private Properties

Свойство Type Description
GetMapiPropertyFromPropertyStream object
GetMapiPropertyFromStreamOrStorage object
OutlookStorage System
OutlookStorage System
OutlookStorage System

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetMapiProperty ( string propIdentifier ) : object

Gets the raw value of the MAPI property.

GetMapiPropertyBytes ( string propIdentifier ) : byte[]

Gets the value of the MAPI property as a byte array.

GetMapiPropertyInt16 ( string propIdentifier ) : Int16

Gets the value of the MAPI property as a short.

GetMapiPropertyInt32 ( string propIdentifier ) : int

Gets the value of the MAPI property as a integer.

GetMapiPropertyString ( string propIdentifier ) : string

Gets the value of the MAPI property as a string.

GetStreamAsString ( string streamName, Encoding streamEncoding ) : string

Gets the data in the specified stream as a string using the specifed encoding to decode the stream data.

GetStreamBytes ( string streamName ) : byte[]

Gets the data in the specified stream as a byte array.

Méthodes protégées

Méthode Description
Disposing ( ) : void

Gives sub classes the chance to free resources during object disposal.

LoadStorage ( NativeMethods storage ) : void

Processes sub streams and storages on the specified storage.

Private Methods

Méthode Description
GetMapiPropertyFromPropertyStream ( string propIdentifier ) : object

Gets the MAPI property value from the property stream in this storage.

GetMapiPropertyFromStreamOrStorage ( string propIdentifier ) : object

Gets the MAPI property value from a stream or storage in this storage.

OutlookStorage ( NativeMethods storage ) : System

Initializes a new instance of the OutlookStorage class on the specified NativeMethods.IStorage.

OutlookStorage ( Stream storageStream ) : System

Initializes a new instance of the OutlookStorage class from a Stream containing an IStorage.

OutlookStorage ( string storageFilePath ) : System

Initializes a new instance of the OutlookStorage class from a file.

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Disposing() protected méthode

Gives sub classes the chance to free resources during object disposal.
protected Disposing ( ) : void
Résultat void

GetMapiProperty() public méthode

Gets the raw value of the MAPI property.
public GetMapiProperty ( string propIdentifier ) : object
propIdentifier string The 4 char hexadecimal prop identifier.
Résultat object

GetMapiPropertyBytes() public méthode

Gets the value of the MAPI property as a byte array.
public GetMapiPropertyBytes ( string propIdentifier ) : byte[]
propIdentifier string The 4 char hexadecimal prop identifier.
Résultat byte[]

GetMapiPropertyInt16() public méthode

Gets the value of the MAPI property as a short.
public GetMapiPropertyInt16 ( string propIdentifier ) : Int16
propIdentifier string The 4 char hexadecimal prop identifier.
Résultat System.Int16

GetMapiPropertyInt32() public méthode

Gets the value of the MAPI property as a integer.
public GetMapiPropertyInt32 ( string propIdentifier ) : int
propIdentifier string The 4 char hexadecimal prop identifier.
Résultat int

GetMapiPropertyString() public méthode

Gets the value of the MAPI property as a string.
public GetMapiPropertyString ( string propIdentifier ) : string
propIdentifier string The 4 char hexadecimal prop identifier.
Résultat string

GetStreamAsString() public méthode

Gets the data in the specified stream as a string using the specifed encoding to decode the stream data.
public GetStreamAsString ( string streamName, Encoding streamEncoding ) : string
streamName string Name of the stream to get string data for.
streamEncoding System.Text.Encoding The encoding to decode the stream data with.
Résultat string

GetStreamBytes() public méthode

Gets the data in the specified stream as a byte array.
public GetStreamBytes ( string streamName ) : byte[]
streamName string Name of the stream to get data for.
Résultat byte[]

LoadStorage() protected méthode

Processes sub streams and storages on the specified storage.
protected LoadStorage ( NativeMethods storage ) : void
storage NativeMethods The storage to get sub streams and storages for.
Résultat void

Property Details

streamStatistics public_oe property

The statistics for all streams in the IStorage associated with this instance.
public Dictionary streamStatistics
Résultat ComTypes.STATSTG>.Dictionary

subStorageStatistics public_oe property

The statistics for all storgages in the IStorage associated with this instance.
public Dictionary subStorageStatistics
Résultat ComTypes.STATSTG>.Dictionary