이 문서는 기계로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오. 추가 정보
번역
원본
이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

Component 클래스

IComponent 인터페이스를 기본적으로 구현하고 응용 프로그램 간의 개체 공유를 가능하게 합니다.

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      자세히...

네임스페이스:  System.ComponentModel
어셈블리:  System(System.dll)
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)]
public class Component : MarshalByRefObject, IComponent, 
	IDisposable

Component 형식에서는 다음과 같은 멤버를 노출합니다.

  이름설명
Public 메서드XNA Framework에서 지원Component Component 클래스의 새 인스턴스를 초기화합니다.
위쪽
  이름설명
Protected 속성CanRaiseEvents구성 요소가 이벤트를 발생시킬 수 있는지 여부를 나타내는 값을 가져옵니다.
Public 속성Container Component 가 포함된 IContainer를 가져옵니다.
Protected 속성DesignMode Component 가 현재 디자인 모드인지 여부를 나타내는 값을 가져옵니다.
Protected 속성XNA Framework에서 지원EventsComponent에 연결된 이벤트 처리기의 목록을 가져옵니다.
Public 속성XNA Framework에서 지원Site Component ISite를 가져오거나 설정합니다.
위쪽
  이름설명
Public 메서드CreateObjRef원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다. (MarshalByRefObject에서 상속됨)
Public 메서드XNA Framework에서 지원Dispose() Component 에서 사용하는 모든 리소스를 해제합니다.
Protected 메서드XNA Framework에서 지원Dispose(Boolean) Component 에서 사용하는 관리되지 않는 리소스를 해제하고, 관리되는 리소스를 선택적으로 해제할 수 있습니다.
Public 메서드XNA Framework에서 지원Equals(Object)지정한 개체와 현재 개체가 같은지 여부를 확인합니다. (Object에서 상속됨)
Protected 메서드XNA Framework에서 지원Finalize가비지 수집에 의해 Component가 회수되기 전에 관리되지 않는 리소스를 해제하고 기타 정리 작업을 수행합니다. (Object.Finalize()을(를) 재정의함)
Public 메서드XNA Framework에서 지원GetHashCode특정 형식에 대한 해시 함수 역할을 합니다. (Object에서 상속됨)
Public 메서드GetLifetimeService이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다. (MarshalByRefObject에서 상속됨)
Protected 메서드GetService Component 또는 해당 Container에서 제공하는 서비스를 나타내는 개체를 반환합니다.
Public 메서드XNA Framework에서 지원GetType현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public 메서드InitializeLifetimeService이 인스턴스의 수명 정책을 제어하기 위한 수명 서비스 개체를 가져옵니다. (MarshalByRefObject에서 상속됨)
Protected 메서드XNA Framework에서 지원MemberwiseClone()현재 Object의 단순 복사본을 만듭니다. (Object에서 상속됨)
Protected 메서드MemberwiseClone(Boolean)현재 MarshalByRefObject 개체의 단순 복사본을 만듭니다. (MarshalByRefObject에서 상속됨)
Public 메서드XNA Framework에서 지원ToString Component 의 이름이 포함된 String을 반환합니다. 이 메서드는 재정의할 수 없습니다. (Object.ToString()을(를) 재정의함)

XNA Framework 3.0에서 이 멤버는 Object에서 상속됩니다..ToString().
위쪽
  이름설명
Public 이벤트XNA Framework에서 지원Disposed Dispose 메서드를 호출하여 구성 요소가 삭제되는 경우 발생합니다.
위쪽

Component 는 공용 언어 런타임에서 참조별로 마샬링하는 모든 구성 요소의 기본 클래스입니다. Component 는 원격 가능하며 MarshalByRefObject 클래스에서 파생됩니다. Component IComponent 인터페이스의 구현을 제공합니다. MarshalByValueComponent 는 값별로 마샬링하도록 IComponent를 구현합니다.

IContainer 인터페이스를 구현하는 개체에 Component를 호스팅할 수 있으며, 해당 컨테이너에서 서비스를 쿼리하고 가져올 수 있습니다. 컨테이너는 포함하는 각 ComponentISite를 만듭니다. 컨테이너는 이 사이트를 사용하여 Component를 관리하고, Component는 이 컨테이너를 사용하여 해당 컨테이너와 통신합니다.

Component Finalize 메서드를 암시적으로 호출하여 자동으로 메모리가 관리되기를 기다리지 말고 Dispose 메서드를 호출하여 리소스를 명시적으로 해제해야 합니다. Container 가 삭제되면 Container의 구성 요소도 모두 삭제됩니다.

.NET Framework

4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0에서 지원

.NET Framework Client Profile

4, 3.5 SP1에서 지원

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008(서버 코어 역할은 지원되지 않음), Windows Server 2008 R2(서버 코어 역할은 SP1 이상에서 지원, Itanium은 지원되지 않음)

.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.
System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray
      System.CodeDom.Compiler.CodeDomProvider
      System.ComponentModel.BackgroundWorker
      System.Configuration.Install.Installer
      System.Data.Common.DataAdapter
      System.Data.Common.DbCommand
      System.Data.Common.DbCommandBuilder
      System.Data.Common.DbConnection
      System.Diagnostics.EventLog
      System.Diagnostics.EventLogEntry
      System.Diagnostics.PerformanceCounter
      System.Diagnostics.Process
      System.Diagnostics.ProcessModule
      System.Diagnostics.ProcessThread
      System.DirectoryServices.DirectoryEntry
      System.DirectoryServices.DirectorySearcher
      System.Drawing.Printing.PrintDocument
      System.IO.FileSystemWatcher
      System.IO.Ports.SerialPort
      System.Management.ManagementBaseObject
      System.Management.ManagementEventWatcher
      System.Management.ManagementObjectSearcher
      System.Media.SoundPlayer
      System.Messaging.Message
      System.Messaging.MessageQueue
      System.Net.NetworkInformation.Ping
      System.Net.WebClient
      System.Runtime.Remoting.Services.RemotingClientProxy
      System.Runtime.Remoting.Services.RemotingService
      System.ServiceProcess.ServiceBase
      System.ServiceProcess.ServiceController
      System.Timers.Timer
      System.Web.Services.Protocols.WebClientProtocol
      System.Web.UI.WebControls.Style
      System.Windows.Forms.BindingSource
      System.Windows.Forms.ColumnHeader
      System.Windows.Forms.CommonDialog
      System.Windows.Forms.Control
      System.Windows.Forms.DataGridColumnStyle
      System.Windows.Forms.DataGridTableStyle
      System.Windows.Forms.Design.FolderNameEditor.FolderBrowser
      System.Windows.Forms.ErrorProvider
      System.Windows.Forms.HelpProvider
      System.Windows.Forms.ImageList
      System.Windows.Forms.Menu
      System.Windows.Forms.NotifyIcon
      System.Windows.Forms.StatusBarPanel
      System.Windows.Forms.Timer
      System.Windows.Forms.ToolBarButton
      System.Windows.Forms.ToolStripItem
      System.Windows.Forms.ToolStripPanelRow
      System.Windows.Forms.ToolTip
이 정보가 도움이 되었습니까?
(1500자 남음)

커뮤니티 추가 항목

추가
Microsoft는 MSDN 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 MSDN 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.

참여하시겠습니까?
© 2013 Microsoft. All rights reserved.