Share via


SetContextDefaultMenuText Method

SetContextDefaultMenuText Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. The SetContextDefaultMenuText method is used to change the text of the New, Rename, and Delete options in the folder context menu.

Applies To

ExchangeTreeViewControl Class

Syntax

Visual Basic .NET

Sub SetContextDefaultMenuText
(
	ByVal contextNew As String,
	ByVal contextRename As String,
	ByVal contextDelete As String
)

C#

void SetContextDefaultMenuText
(
	string contextNew,
	string contextRename,
	string contextDelete
);

Parameters

Parameter Description
contextNew The value to which the text of the New option will be changed.
contextRename The value to which the text of the Rename option will be changed.
contextDelete The value to which the text of the Delete option will be changed.

Return Value

Returns VOID.

Remarks

The default text value for the New option of the folder context menu is "New".

The default text value for the Rename option of the folder context menu is "Rename".

The default text value for the Delete option of the folder context menu is "Delete".

Examples

Visual Basic .NET

In the following example, the text of the New option of the context menu is changed to "New Folder", the text of the Rename option is changed to "Rename Folder", and the text of the Delete option is changed to "Delete Folder".

myTreeViewControl.SetContextDefaultMenuText("New Folder", _
                                            "Rename Folder", _
                                            "Delete Folder")

C#

In the following example, the text of the New option of the context menu is changed to "New Folder", the text of the Rename option is changed to "Rename Folder", and the text of the Delete option is changed to "Delete Folder".

myTreeViewControl.SetContextDefaultMenuText("New Folder",
                                            "Rename Folder",
                                            "Delete Folder");

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.