The SecurityManager Class

Security Manager
for Microsoft Outlook


Add-in Express Home > Outlook Security Manager > Online Guide > Class Reference

The SecurityManager Class

Switch off e-mail security with Outlook Security Manager .NET - video 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)

Connects to the Outlook.Application object used by the application. This method is important for applications interacting with Outlook and should be called before the DisableXXX properties are used. This method is optional for Outlook add-ins.

Deployment <<

Back to Outlook Security Manager homepage




Client login

 

Login 

Password 

 

Remember me

Forgot my password