Export (0) Print
Expand All

SiteMapCustomizer Class

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Modifies the SiteMap XML in a Microsoft Dynamics CRM customization file.

The SiteMapCustomizer class exposes the following members.

ConstructorDescription
SiteMapCustomizerInitializes a new instance of the SiteMapCustomizer class.

Instance MethodDescription
AddAreaAdds an area element to the SiteMap XML.
AddGroupAdds a group element to the SiteMap XML.
AddPrivilegeNodeAdds a privilege to a subarea.
AddSubAreaAdds a subarea to a group element in the SiteMap XML.
RemoveAreaRemoves an area element from the SiteMap XML.
RemoveGroupRemoves a group element from the SiteMap XML.
RemovePrivilegeNodeRemoves a privilege from a subarea.
RemoveSubAreaRemoves a subarea from a group element in the SiteMap XML.

Instance PropertyDescription
XmlGets the XML document that contains the SiteMap configuration.

Remarks

This class provides methods that add and remove areas, groups, and subareas to the SiteMap. These methods enable customization of the SiteMap to customize navigation of features of an ISV add-in component.

Generally, the methods build the required XML structure required by the method. For example, if you try to add a global toolbar button and the global toolbar is not yet defined in the XML schema, it will be added and then the button will be added to it.

Example

The following partial code sample shows how to use the SiteMapCustomizer class. The sample code first loads a test customization XML file that contains a SiteMap. Next, the code adds an area, group, subarea, and privilege to the SiteMap. The code saves the changes to a new customization XML file.

Remarks

For more information, see the SiteMap XML Reference.

Requirements

Namespace: Microsoft.Crm.Sdk.IsvReadiness

Assembly: Microsoft.Crm.Sdk.IsvReadiness.dll

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft