CurrentUserCompany Method
Note: This API is now obsolete.
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 default current user's AX company name abbreviation (e.g. "DAT").
Namespace: Microsoft.Dynamics.Framework.Reports
Assembly: Microsoft.Dynamics.Framework.Reports (in Microsoft.Dynamics.Framework.Reports.dll)
Syntax
'Declaration
<ObsoleteAttribute("The CurrentUserCompany method is deprecated. Use BuiltInMethods.GetUserCompany() instead. For example, BuiltInMethods.GetUserCompany(Parameters!AX_UserContext.Value)")> _
<SecurityCriticalAttribute> _
<BuiltInMethodAttribute> _
Public Shared Function CurrentUserCompany As String
'Usage
Dim returnValue As String
returnValue = BuiltInMethods.CurrentUserCompany()
[ObsoleteAttribute("The CurrentUserCompany method is deprecated. Use BuiltInMethods.GetUserCompany() instead. For example, BuiltInMethods.GetUserCompany(Parameters!AX_UserContext.Value)")]
[SecurityCriticalAttribute]
[BuiltInMethodAttribute]
public static string CurrentUserCompany()
[ObsoleteAttribute(L"The CurrentUserCompany method is deprecated. Use BuiltInMethods.GetUserCompany() instead. For example, BuiltInMethods.GetUserCompany(Parameters!AX_UserContext.Value)")]
[SecurityCriticalAttribute]
[BuiltInMethodAttribute]
public:
static String^ CurrentUserCompany()
Return Value
Type: System.String
The AX company name.