Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

AccountTypes Class

 

Applies To: SQL Server 2016 Preview

Contains a fixed set of account types. This class cannot be changed or inherited.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

System::Object
  Microsoft.AnalysisServices::AccountTypes

public ref class AccountTypes abstract sealed 

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticAsset

Represents the asset account type.

System_CAPS_pubfieldSystem_CAPS_staticBalance

Represents a Balance account type.

System_CAPS_pubfieldSystem_CAPS_staticExpense

Represents an Expense account type.

System_CAPS_pubfieldSystem_CAPS_staticFlow

Represents a Flow account type.

System_CAPS_pubfieldSystem_CAPS_staticIncome

Represents an Income account type.

System_CAPS_pubfieldSystem_CAPS_staticLiability

Represents a Liability account type.

System_CAPS_pubfieldSystem_CAPS_staticStatistical

Represents a Statistical account type.

New: 17 July 2006

This class contains a list of constant values that are the basic account types. The account type can only be Asset, Balance, Expense, Flow, Income, Liability, or Statistical. AccountType values cannot be added to this class, they should be maintained independently by a user application.

To add your own account type values to a dimension, that dimension should be created as an Account type, see DimensionType and Dimension.

Legacy Code Example

The following example in C# demonstrates the contents of the AccountTypes class.

SortedList<String, String> accountTypes = new SortedList<string, string>();
accountTypes.Add("Asset", AccountTypes.Asset);
accountTypes.Add("Balance", AccountTypes.Balance);
accountTypes.Add("Expense", AccountTypes.Expense);
accountTypes.Add("Flow", AccountTypes.Flow);
accountTypes.Add("Income", AccountTypes.Income);
accountTypes.Add("Liability", AccountTypes.Liability);
accountTypes.Add("Statistical", AccountTypes.Statistical);
foreach (String key in accountTypes.Keys)
{
    System.Diagnostics.Debug.WriteLine(key + " --> " + accountTypes[key]);
}

You should see the following results.

Asset --> Asset

Balance --> Balance

Expense --> Expense

Flow --> Flow

Income --> Income

Liability --> Liability

Statistical --> Statistical

The values in the right column represent the contents for each of the constant literals.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show:
© 2015 Microsoft