MessageControl

MessageControl sınıfı/arayüzü ve üyeleri (Add-In nesne modeli).

OrtamKullanılabilirlik
Engineering StudioKullanılabilir
Service EngineSalt okunur
VBAKullanılabilir
VSTAKullanılabilir
C#

                  public void MacroMessageControl()
{
    //Print properties of the message control
    IMessageControl zenonMessageControl =
        this.ActiveDocument.MessageControl;
    System.Diagnostics.Debug.Print("Message Control active during <NAME_SERVICE_ENGINE> start: "
        + zenonMessageControl.ActiveAtStartup);
    System.Diagnostics.Debug.Print("Max number of attempts: "
        + zenonMessageControl.Attempts);
    System.Diagnostics.Debug.Print("Detail level for log in CEL: "
        + zenonMessageControl.CelDetail);
    System.Diagnostics.Debug.Print("Waiting period between two attempts[min]: "
        + zenonMessageControl.TimeToWait);
    System.Diagnostics.Debug.Print("Log manual deletion of messages in CEL: "
        + zenonMessageControl.LogMessageDeleteActions);
}
VB.NET

                  Public Sub MacroMessageControl()
    'Print properties of the message control
    Dim zenonMessageControl As IMessageControl = Me.ActiveDocument.MessageControl
    System.Diagnostics.Debug.Print("Message Control active during <NAME_SERVICE_ENGINE> start: " + zenonMessageControl.ActiveAtStartup)
    System.Diagnostics.Debug.Print("Max number of attempts: " + zenonMessageControl.Attempts)
    System.Diagnostics.Debug.Print("Detail level for log in CEL: " + zenonMessageControl.CelDetail)
    System.Diagnostics.Debug.Print("Waiting period between two attempts[min]: " + zenonMessageControl.TimeToWait)
    System.Diagnostics.Debug.Print("Log manual deletion of messages in CEL: " + zenonMessageControl.LogMessageDeleteActions)
End Sub
VBA

                  '====================================================================================================
' MessageControl Workspace
'====================================================================================================
Private Sub MessageControl_Sample()
Dim zMessage As MessageControlMessage
Dim zMessageControl As MessageControl
Dim i As Integer
Dim count As Integer
On Error GoTo ErrorHandler
Stop
'Get Message Control Properties
Set zMessageControl = MyWorkspace.ActiveDocument.MessageControl
With zMessageControl

Debug.Print ("Message Control active during <NAME_SERVICE_ENGINE> start: " & 
CStr(.ActiveAtStartup))

Debug.Print ("Max. number of attemtps: " & CStr(.Attempts))

Debug.Print ("Detail level for Log in CEL: " & CStr(.CelDetail))

Debug.Print ("Waiting period between two attempts[min] : " & CStr(.TimeToWait))

Debug.Print ("Log manuel deletion of messages in the CEL : " & 
CStr(.LogMessageDeleteActions));

'Set Message Control Properties

.ActiveAtStartup = False

.Attempts = 5

.CelDetail = tpCelDetailNone

.TimeToWait = 15

.LogMessageDeleteActions = True
End With
Exit Sub
ErrorHandler:
Debug.Print ("Error :" & Err.Description & " " & Err.Number)
End Sub

Bu bölümdeki konular

Bu sayfa, COPA-DATA zenon 16 çevrimiçi yardımının Türkçe çevirisidir. Menü ve ayar adları, programdaki gibi bulmanız için İngilizce bırakılmıştır.