Kodama

ComponentContainerImpl.GetComponent メソッド (String)

[This is preliminary documentation and subject to change.]

コンポーネントを取得する

public object GetComponent(
   string componentName
);

パラメータ

componentName
取得するコンポーネントの名前

戻り値

引数にわたされた名前のコンポーネント

実装

IComponentContainer.GetComponent

例外

例外の種類 条件
TooManyRegistrationException 指定された名前のコンポーネントが複数合った場合に発生する例外
ComponentNotFoundException 指定された名前のコンポーネントがなかった場合に発生する例外
CyclicDependencyException コンポーネントの依存関係が循環していてかつ、循環しているコンポーネントが Prototypeモードの場合に発生する例外

参照

ComponentContainerImpl クラス | Kodama.DependencyInjection.Container 名前空間