GetUserCompany Method
This member has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses this member throws a MethodAccessException.[SECURITY CRITICAL]
Gets the given user's AX company name abbreviation (e.g. "DAT"), if argument is null, defaults to the current windows user.
Namespace: Microsoft.Dynamics.Framework.Reports
Assembly: Microsoft.Dynamics.Framework.Reports (in Microsoft.Dynamics.Framework.Reports.dll)
Syntax
'Declaration
<SecurityCriticalAttribute> _
<BuiltInMethodAttribute> _
Public Shared Function GetUserCompany ( _
axUser As String _
) As String
'Usage
Dim axUser As String
Dim returnValue As String
returnValue = BuiltInMethods.GetUserCompany(axUser)
[SecurityCriticalAttribute]
[BuiltInMethodAttribute]
public static string GetUserCompany(
string axUser
)
[SecurityCriticalAttribute]
[BuiltInMethodAttribute]
public:
static String^ GetUserCompany(
String^ axUser
)
Parameters
- axUser
Type: System.String
Return Value
Type: System.String
The AX company name.