Share via


ProfileContext.GetSiteTerm (String) Method (BCL)

Use this method to initialize the SiteTerms collection and return the specified SiteTerm object.

[Visual Basic .NET]

Public Function GetSiteTerm( _ByValname As System.String _
) As SiteTerm

[C#]

public SiteTerm GetSiteTerm(System.Stringname);

Parameters

[Visual Basic .NET]

  • name
    The name of the SiteTerm.

[C#]

  • name
    The name of the SiteTerm.

Return Value

The SiteTerm object. Returns the SiteTerm object instance for the requested SiteTerm name. Returns null if the requested SiteTerm object does not exist in the Profiling System.

Remarks

Throws an ArgumentNullException if the name parameter is null. Throws an InvalidOperationException in a valid value was not provided for the bdaoConnstr parameter of the constructor.

Throws a CommerceProfileSystemException if the SiteTerms collection was not successfully initialized. The Message and ErrorCode properties of the inner COMException contain details on the specific error that occurred.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Profiles

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Code to Build a Login Page

Code to Create and Set Profile Properties

Code to Retrieve and Display Profile Properties

Code to Use the SiteTerm Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.