|
EdmObjectFactoryGetUserObject Method
|
Returns the user object from the specified user name (login name) or id.
Namespace:
CADSharpTools.Testing
Assembly:
CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntaxpublic static IEdmUser5 GetUserObject(
IEdmVault5 vault,
string userName,
int userID = -2147483648
)
Public Shared Function GetUserObject (
vault As IEdmVault5,
userName As String,
Optional userID As Integer = -2147483648
) As IEdmUser5
Parameters
- vault
- Type: IEdmVault5
Vault object. - userName
- Type: SystemString
Name of the user. - userID (Optional)
- Type: SystemInt32
ID of the user.
Return Value
Type:
IEdmUser5IEdmUser5 object
Remarks- Use the user id instead of the user name if there are multiple users with the same name.
- The parameter userId takes precedence over the userName.
- When userName is specified, the method will return the first user with matching name.
See Also