Udostępnij przez


Pole AccountTypes.Expense

Reprezentuje typ konta wydatki.

Przestrzeń nazw:  Microsoft.AnalysisServices
Zestaw:  Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)

Składnia

'Deklaracja
Public Const Expense As String
'Użycie
Dim value As String

value = AccountTypes.Expense
public const string Expense
public:
literal String^ Expense
static val mutable Expense: string
public const var Expense : String

Przykłady

W poniższym przykładzie w języku C# pokazano, jak działa klasa.

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]);
}

Powinny być widoczne następujące wyniki.

Asset --> Asset

Balance --> Balance

Expense --> Expense

Flow --> Flow

Income --> Income

Liability --> Liability

Statistical --> Statistical

Wartości w prawej kolumna reprezentują zawartość każdej stała literałów.