Security Manager for Microsoft® Outlook®
Add-in Express Home > Outlook Security Manager > Online Guide > Class Reference
The SecurityManager Class
The SecurityManager class is a wrapper over Outlook Security Manager COM object. Its properties allow a developer to disable / enable Outlook security warnings for Outlook objects interoperability, CDO and Simple MAPI calls.
Namespace: AddInExpress.Outlook
DisableCDOWarnings
Disables / enables security warnings when using protected CDO objects.
[Visual Basic or VBA]
Public Property DisableCDOWarnings As Boolean
[C#]
public bool DisableCDOWarnings {get; set;}
[C++]
public:
__property bool get_DisableCDOWarnings ()
__property void set_DisableCDOWarnings ( bool )
Set this property to True to disable Outlook security warnings when you call protected CDO objects.
DisableOOMWarnings
Disables / enables the security warnings when using protected Outlook objects.
[Visual Basic or VBA]
Public Property DisableOOMWarnings As Boolean
[C#]
public bool DisableOOMWarnings {get; set;}
[C++]
public:
__property bool get_DisableOOMWarnings ()
__property void set_DisableOOMWarnings ( bool )
Set this property to True to disable Outlook security warnings when you call protected Outlook objects.
DisableSMAPIWarnings
Disables / enables the security warnings when using Simple MAPI functions.
[Visual Basic]
Public Property DisableSMAPIWarnings As Boolean
[C#]
public bool DisableSMAPIWarnings {get; set;}
[C++]
public:
__property bool get_DisableSMAPIWarnings ()
__property void set_DisableSAMPIWarnings ( bool )
Set this property to True to disable Outlook security warnings when you call Simple MAPI functions.
Check
Checks the possibility to disable Outlook security warnings.
[Visual Basic or VBA] Public Function Check(ByVal kind As OutlookSecurity.osmWarningKind)
As OutlookSecurity.osmResult
Public Enum osmResult As Integer
Public Enum osmWarningKind As Integer
[C#] public OutlookSecurity.osmResult Check ( OutlookSecurity.osmWarningKind kind )
public sealed enum osmResult : System.Enum
public sealed enum osmWarningKind : System.Enum
[C++] public OutlookSecurity::osmResult Check ( OutlookSecurity::osmWarningKind kind )
public __value enum osmResult
public __value enum osmWarningKind
Determines the possibility to disable security warnings for the security kind specified by the AKind parameter. The kind parameter can be:
- osmObjectModel - the possibility will be determined for protected Outlook objects.
- osmCDO - the possibility will be determined for protected CDO objects.
- osmSimpleMAPI - the possibility will be determined for protected Simple MAPI function.
The Check function returns one of the following values:
- osmOK - Outlook Security can be disabled.
- osmDLLNotLoaded - Outlook Security cannot be disabled because Outlook Security Manager is not registered.
- osmSecurityGuardNotFound - Outlook Security cannot be disabled.
- osmUnknownOlVersion - Outlook Security cannot be disabled because Outlook Security Manager cannot determine Outlook version.
- osmCDONotFound - Outlook Security cannot be disabled because CDO is not installed.
ConnectTo
Connects to an existing Outlook.Application object.
Disables / enables security warnings when using protected CDO objects.
[Visual Basic or VBA]
Public Sub ConnectTo(ByVal outlookApp As Object)
[C#]
public void ConnectTo (System.Object outlookApp)
[C++]
public void ConnectTo (System::Object outlookApp)
Call this method if and only if both of the following conditions are met:
- If your code uses the Outlook Object Model
- If your code runs in a process other than Outlook
That call must be performed before the first use of the DisableOOMWarnings property.
Disconnect
Disconnects from the previously connected Outlook Application Object.
[Visual Basic]
Public Sub Disconnect(ByVal outlookApp As Object)
[C#]
public void Disconnect (System.Object outlookApp)
[C++]
public void Disconnect (System::Object outlookApp)
|