GetSiteTerm Method
Initialize a collection of SiteTerm objects with the specified name.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function GetSiteTerm ( _
name As String _
) As SiteTerm
'Usage
Dim instance As ProfileContext
Dim name As String
Dim returnValue As SiteTerm
returnValue = instance.GetSiteTerm(name)
public SiteTerm GetSiteTerm(
string name
)
public:
SiteTerm^ GetSiteTerm(
String^ name
)
public function GetSiteTerm(
name : String
) : SiteTerm
Parameters
- name
Type: System..::.String
The name of the SiteTerm.
Return Value
Type: Microsoft.CommerceServer.Runtime.Profiles..::.SiteTerm
The SiteTerm object. Returns nullNothingnullptra null reference (Nothing in Visual Basic) if the requested SiteTerm object does not exist in the Profiling System.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | name is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Use this method to initialize the SiteTerms collection and return the specified SiteTerm object.
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.