C# 클래스 System.ComponentModel.Container

Container class: encapsulates components.
상속: IContainer, IDisposable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IComponent component ) : void

Adds the specified component to the . The component is unnamed.

Add ( IComponent component, String name ) : void

Adds the specified component to the and assigns a name to it.

Dispose ( ) : void

Disposes of the .

Remove ( IComponent component ) : void

Removes a component from the .

보호된 메소드들

메소드 설명
CreateSite ( IComponent component, string name ) : ISite

Creates a Site for the given and assigns the given name to the site.

Dispose ( bool disposing ) : void
GetService ( Type service ) : object

[To be supplied.]

RemoveWithoutUnsiting ( IComponent component ) : void
ValidateName ( IComponent component, string name ) : void

Validates that the given name is valid for a component. The default implementation verifies that name is either null or unique compared to the names of other components in the container.

비공개 메소드들

메소드 설명
Remove ( IComponent component, bool preserveSite ) : void

메소드 상세

Add() 공개 메소드

Adds the specified component to the . The component is unnamed.

public Add ( IComponent component ) : void
component IComponent
리턴 void

Add() 공개 메소드

Adds the specified component to the and assigns a name to it.

public Add ( IComponent component, String name ) : void
component IComponent
name String
리턴 void

CreateSite() 보호된 메소드

Creates a Site for the given and assigns the given name to the site.

protected CreateSite ( IComponent component, string name ) : ISite
component IComponent
name string
리턴 ISite

Dispose() 공개 메소드

Disposes of the .

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetService() 보호된 메소드

[To be supplied.]

protected GetService ( Type service ) : object
service Type
리턴 object

Remove() 공개 메소드

Removes a component from the .

public Remove ( IComponent component ) : void
component IComponent
리턴 void

RemoveWithoutUnsiting() 보호된 메소드

protected RemoveWithoutUnsiting ( IComponent component ) : void
component IComponent
리턴 void

ValidateName() 보호된 메소드

Validates that the given name is valid for a component. The default implementation verifies that name is either null or unique compared to the names of other components in the container.
protected ValidateName ( IComponent component, string name ) : void
component IComponent
name string
리턴 void