Поделиться через


Класс AccountTypes

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

Иерархия наследования

System. . :: . .Object
  Microsoft.AnalysisServices..::..AccountTypes

Пространство имен:  Microsoft.AnalysisServices
Сборка:  Microsoft.AnalysisServices (в Microsoft.AnalysisServices.dll)

Синтаксис

'Декларация
Public NotInheritable Class AccountTypes
'Применение
public static class AccountTypes
public ref class AccountTypes abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type AccountTypes =  class end
public final class AccountTypes

Тип AccountTypes обеспечивает доступ к следующим элементам.

Поля

  Имя Описание
Открытое полеСтатический элемент Asset Represents the asset account type.
Открытое полеСтатический элемент Balance Represents a Balance account type.
Открытое полеСтатический элемент Expense Represents an Expense account type.
Открытое полеСтатический элемент Flow Represents a Flow account type.
Открытое полеСтатический элемент Income Represents an Income account type.
Открытое полеСтатический элемент Liability Represents a Liability account type.
Открытое полеСтатический элемент Statistical Represents a Statistical account type.

В начало

Замечания

Добавления: 17 июля 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.

Примеры

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.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник