DeleteSiteTerm Method
Deletes a site term from the server.
Namespace: Microsoft.CommerceServer.Profiles
Assembly: Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub DeleteSiteTerm ( _
siteTermName As String _
)
'Usage
Dim instance As ProfileManagementContext
Dim siteTermName As String
instance.DeleteSiteTerm(siteTermName)
public void DeleteSiteTerm(
string siteTermName
)
public:
void DeleteSiteTerm(
String^ siteTermName
)
public function DeleteSiteTerm(
siteTermName : String
)
Parameters
- siteTermName
Type: System..::.String
Name of the site term to delete.
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
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