|
UserInfoUserNameToSID Method
|
Converts the given user name to the SID corresponding to that name.
Namespace: GSF.IdentityAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.260-beta+70deedf5e6ac0fdaa6bba427c53635967bcf87e2
Syntaxpublic static string UserNameToSID(
string userName
)
Public Shared Function UserNameToSID (
userName As String
) As String
public:
static String^ UserNameToSID(
String^ userName
)
static member UserNameToSID :
userName : string -> string GSF.Identity.UserInfo.UserNameToSID = function(userName);
View SourceParameters
- userName String
- The user name for which to look up the SID.
Return Value
StringThe SID for the given user name, or the user name if no SID can be found.
Remarks
If the userName cannot be converted to a SID, userName
will be the return value.
See Also