Compartir a través de


Clase AccountTypes

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

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.AnalysisServices
Ensamblado:  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Sintaxis

'Declaración
Public NotInheritable Class AccountTypes
'Uso
public static class AccountTypes
public ref class AccountTypes abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type AccountTypes =  class end
public final class AccountTypes

El tipo AccountTypes expone los siguientes miembros.

Campos

  Nombre Descripción
Campo públicoMiembro estático Asset Represents the asset account type.
Campo públicoMiembro estático Balance Represents a Balance account type.
Campo públicoMiembro estático Expense Represents an Expense account type.
Campo públicoMiembro estático Flow Represents a Flow account type.
Campo públicoMiembro estático Income Represents an Income account type.
Campo públicoMiembro estático Liability Represents a Liability account type.
Campo públicoMiembro estático Statistical Represents a Statistical account type.

Arriba

Comentarios

Nuevo: 17 de julio de 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.

Ejemplos

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.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.