Class OutlookStorage
Inheritance
Implements
Inherited Members
Namespace: Simplic.Framework.DocumentProcessing.Outlook
Assembly: Simplic.Framework.DocumentProcessing.dll
Syntax
public class OutlookStorage : IDisposable
Fields
| Improve this Doc View SourcestreamStatistics
The statistics for all streams in the IStorage associated with this instance.
Declaration
public Dictionary<string, STATSTG> streamStatistics
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Runtime.InteropServices.ComTypes.STATSTG> |
subStorageStatistics
The statistics for all storgages in the IStorage associated with this instance.
Declaration
public Dictionary<string, STATSTG> subStorageStatistics
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Runtime.InteropServices.ComTypes.STATSTG> |
Methods
| Improve this Doc View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Disposing()
Gives sub classes the chance to free resources during object disposal.
Declaration
protected virtual void Disposing()
Finalize()
Releases unmanaged resources and performs other cleanup operations before the OutlookStorage is reclaimed by garbage collection.
Declaration
protected void Finalize()
GetMailAddressProperty(OutlookStorage, String)
Get mail from xaml storage
Declaration
public static string GetMailAddressProperty(OutlookStorage rec, string PR_SENDER)
Parameters
Type | Name | Description |
---|---|---|
OutlookStorage | rec | |
System.String | PR_SENDER |
Returns
Type | Description |
---|---|
System.String |
GetMapiProperty(String)
Gets the raw value of the MAPI property.
Declaration
public object GetMapiProperty(string propIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | propIdentifier | The 4 char hexadecimal prop identifier. |
Returns
Type | Description |
---|---|
System.Object | The raw value of the MAPI property. |
GetMapiPropertyBytes(String)
Gets the value of the MAPI property as a byte array.
Declaration
public byte[] GetMapiPropertyBytes(string propIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | propIdentifier | The 4 char hexadecimal prop identifier. |
Returns
Type | Description |
---|---|
System.Byte[] | The value of the MAPI property as a byte array. |
GetMapiPropertyInt16(String)
Gets the value of the MAPI property as a short.
Declaration
public short GetMapiPropertyInt16(string propIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | propIdentifier | The 4 char hexadecimal prop identifier. |
Returns
Type | Description |
---|---|
System.Int16 | The value of the MAPI property as a short. |
GetMapiPropertyInt32(String)
Gets the value of the MAPI property as a integer.
Declaration
public int GetMapiPropertyInt32(string propIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | propIdentifier | The 4 char hexadecimal prop identifier. |
Returns
Type | Description |
---|---|
System.Int32 | The value of the MAPI property as a integer. |
GetMapiPropertyString(String)
Gets the value of the MAPI property as a string.
Declaration
public string GetMapiPropertyString(string propIdentifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | propIdentifier | The 4 char hexadecimal prop identifier. |
Returns
Type | Description |
---|---|
System.String | The value of the MAPI property as a string. |
GetStreamAsString(String, Encoding)
Gets the data in the specified stream as a string using the specifed encoding to decode the stream data.
Declaration
public string GetStreamAsString(string streamName, Encoding streamEncoding)
Parameters
Type | Name | Description |
---|---|---|
System.String | streamName | Name of the stream to get string data for. |
System.Text.Encoding | streamEncoding | The encoding to decode the stream data with. |
Returns
Type | Description |
---|---|
System.String | The data in the specified stream as a string. |
GetStreamBytes(String)
Gets the data in the specified stream as a byte array.
Declaration
public byte[] GetStreamBytes(string streamName)
Parameters
Type | Name | Description |
---|---|---|
System.String | streamName | Name of the stream to get data for. |
Returns
Type | Description |
---|---|
System.Byte[] | A byte array containg the stream data. |
LoadStorage(OutlookStorage.NativeMethods.IStorage)
Processes sub streams and storages on the specified storage.
Declaration
protected virtual void LoadStorage(OutlookStorage.NativeMethods.IStorage storage)
Parameters
Type | Name | Description |
---|---|---|
OutlookStorage.NativeMethods.IStorage | storage | The storage to get sub streams and storages for. |