ArcFM Solution Developer Guide
UserName Property (IMMLoginObject)






This property should return the user name used to login to the system database which the user is currently logged into. If the custom login that uses Windows authenticated connections, this property must be set to the true user name. The "true" user name is the Windows login user name without any domain attached.
Syntax
'Declaration
 
<System.Runtime.InteropServices.DispIdAttribute(1610678275)>
ReadOnly Property UserName As System.String
'Usage
 
Dim instance As IMMLoginObject
Dim value As System.String
 
value = instance.UserName
[System.Runtime.InteropServices.DispId(1610678275)]
System.string UserName {get;}
read-only property UserName: System.String; 
System.Runtime.InteropServices.DispIdAttribute(1610678275)
function get UserName : System.String
[System.Runtime.InteropServices.DispId(1610678275)]
__property System.string* get_UserName();
[System.Runtime.InteropServices.DispId(1610678275)]
property System.String^ UserName {
   System.String^ get();
}

Property Value

Returns the user name used to access the system database as a string value.

Example
The following code sample demonstrates how the IMMLoginObject::UserName property may be implemented.
Visual Basic Copy Code
Private Property Get IMMLoginObject_UserName() As String
   IMMLoginObject_UserName = m_pDefaultLogin.UserName
End Property
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IMMLoginObject Interface
IMMLoginObject Members

Send Feedback