Click or drag to resize

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)
Syntax
public static IEdmUser5 GetUserObject(
	IEdmVault5 vault,
	string userName,
	int userID = -2147483648
)

Parameters

vault
Type: IEdmVault5
Vault object.
userName
Type: SystemString
Name of the user.
userID (Optional)
Type: SystemInt32
ID of the user.

Return Value

Type: IEdmUser5
IEdmUser5 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