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. |
上層
備註
新增: 2006 年 7 月 17 日
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.
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。