Partager via


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

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

See Also

Reference

ProfileContext Class

ProfileContext Members

Microsoft.CommerceServer.Runtime.Profiles Namespace