IContentStoreGetStartingUser Method
|
Gets a starting User object to open a session.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIReadonlyUser GetStartingUser(
string userId,
IPAddress visitorIp = null
)
Function GetStartingUser (
userId As String,
Optional visitorIp As IPAddress = Nothing
) As IReadonlyUser
IReadonlyUser^ GetStartingUser(
String^ userId,
IPAddress^ visitorIp = nullptr
)
abstract GetStartingUser :
userId : string *
?visitorIp : IPAddress
(* Defaults:
let _visitorIp = defaultArg visitorIp null
*)
-> IReadonlyUser Parameters
- userId String
- The unique ID of the user to retrieve
- visitorIp IPAddress (Optional)
[Missing <param name="visitorIp"/> documentation for "M:Ingeniux.CMS.IContentStore.GetStartingUser(System.String,System.Net.IPAddress)"]
Return Value
IReadonlyUserThe read-only User object. This User object is only for creating sessions; you cannot make changes to this object.
Exceptions
RemarksIt is good idea to keep this object around, since all session openings need a starting user, and retrieving it every time is will waste of bandwidth.
See Also