Freigeben über


View.Apply Methode

Definition

Wendet die Ansicht die Microsoft Outlook-Benutzeroberfläche an.

public:
 void Apply();
public void Apply ();
Public Sub Apply ()

Hinweise

Um die aktuelle Ansicht ordnungsgemäß zurückzusetzen, müssen Sie eine Reset() und dann view.Apply ausführen. Das folgende Codebeispiel veranschaulicht der Reihenfolge der Aufrufe:

Sub ResetView()
    Dim v As Outlook.View
    ' Save a reference to the current view object
    v = Application.ActiveExplorer().CurrentView
    ' Reset and then apply the current view
    v.Reset()
    v.Apply()
End Sub
private void ResetView()
{
    // Save a reference to the current view object    
    Outlook.View v = Application.ActiveExplorer().CurrentView 
        as Outlook.View; 

    // Reset and then apply the current view
    v.Reset();
    v.Apply();
}

Gilt für: