Create Method (ProfilesServiceAgent)
Creates a new instance of the ProfileManagementContext class using the specified ProfilesServiceAgent.
Namespace: Microsoft.CommerceServer.Profiles
Assembly: Microsoft.CommerceServer.Profiles.CrossTierTypes (in Microsoft.CommerceServer.Profiles.CrossTierTypes.dll)
Syntax
'Declaration
Public Shared Function Create ( _
agent As ProfilesServiceAgent _
) As ProfileManagementContext
'Usage
Dim agent As ProfilesServiceAgent
Dim returnValue As ProfileManagementContext
returnValue = ProfileManagementContext.Create(agent)
public static ProfileManagementContext Create(
ProfilesServiceAgent agent
)
public:
static ProfileManagementContext^ Create(
ProfilesServiceAgent^ agent
)
public static function Create(
agent : ProfilesServiceAgent
) : ProfileManagementContext
Parameters
- agent
Type: Microsoft.CommerceServer.Profiles..::.ProfilesServiceAgent
The ProfilesServiceAgent object representing the Profiles Web Service.
Return Value
Type: Microsoft.CommerceServer.Profiles..::.ProfileManagementContext
A new instance of the ProfileManagementContext class.
Remarks
Initializes a new instance of the ProfileManagementContext class for Agent mode using the specified profiles web service.
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