GetSiteTerm Method
Retrieves a single site term from the server.
Namespace: Microsoft.CommerceServer.Profiles
Assembly: Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)
Syntax
'Declaration
Public Function GetSiteTerm ( _
siteTermName As String _
) As XmlElement
'Usage
Dim instance As ProfileManagementContext
Dim siteTermName As String
Dim returnValue As XmlElement
returnValue = instance.GetSiteTerm(siteTermName)
public XmlElement GetSiteTerm(
string siteTermName
)
public:
XmlElement^ GetSiteTerm(
String^ siteTermName
)
public function GetSiteTerm(
siteTermName : String
) : XmlElement
Parameters
- siteTermName
Type: System..::.String
Name of the site term to retrieve.
Return Value
Type: System.Xml..::.XmlElement
XML representation of the site term.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Any of the parameters provided is nullNothingnullptra null reference (Nothing in Visual Basic). |
AuthenticationException | User has not been authenticated. |
NotAuthorizedException | User is not authorized to perform this task. |
SiteTermDoesNotExistException | The siteTermName specified does not exist. |
Remarks
Returns an XML representation of the site term.
The site term group does not need to be specified because site term names must be unique within the profile system.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ProfileManagementContext Class