Share via


Selection.GetSelection(OlSelectionContents) Método

Definición

Devuelve un Selection objeto que contiene el tipo de objetos especificado por el SelectionContents parámetro y que están seleccionados actualmente en el explorador activo.

public:
 Microsoft::Office::Interop::Outlook::Selection ^ GetSelection(Microsoft::Office::Interop::Outlook::OlSelectionContents SelectionContents);
public Microsoft.Office.Interop.Outlook.Selection GetSelection (Microsoft.Office.Interop.Outlook.OlSelectionContents SelectionContents);
Public Function GetSelection (SelectionContents As OlSelectionContents) As Selection

Parámetros

SelectionContents
OlSelectionContents

Especifica el tipo de objetos de la selección que se va a devolver.

Devoluciones

Devuelve un objeto Selection que contiene el tipo especificado de objetos seleccionados en el explorador activo.

Comentarios

Al llamar a GetSelection con olConversationHeaders como argumento, se devuelve un objeto Selection que tiene la Location propiedad igual a olViewList.

Si la vista actual no es una vista de conversación o, si Location no es igual a OlSelectionLocation.olViewList, llamar a GetSelection con olConversationHeaders como argumento devuelve un objeto Selection con Count igual a 0.

Se aplica a