ComMethodElement 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
COM+ 구성 요소의 인터페이스가 웹 서비스로 노출될 때 노출되는 COM+ 메서드를 나타냅니다. 이 클래스는 상속할 수 없습니다.
public ref class ComMethodElement sealed : System::Configuration::ConfigurationElement
public sealed class ComMethodElement : System.Configuration.ConfigurationElement
type ComMethodElement = class
inherit ConfigurationElement
Public NotInheritable Class ComMethodElement
Inherits ConfigurationElement
- 상속
설명
COM+ 통합 구성 도구(ComSvcConfig.exe)를 사용하여 COM 인터페이스의 특정 메서드를 추가하여 생성된 서비스 계약에 표시할 수 있습니다.
예를 들어 다음 명령을 사용하여 구성 요소의 COM 인터페이스 IFinances 에서 ItemOrders.Financial 생성된 서비스 계약에 세 개의 명명된 메서드를 추가할 수 있습니다.
ComSvcConfig.exe /i /application:OnlineStore /contract:ItemOrders.Financial,IFinances.{TransferFunds,AddFunds,RemoveFunds} /hosting:complus
ComSvcConfig.exe 실행하면 앞에서 언급한 메서드를 요소로 exposedMethod 나열하는 다음 서비스 계약이 생성됩니다.
<comContract contractType="{C551FBA9-E3AA-4272-8C2A-84BD8D290AC7}" name="IFinances" namespace="http://contoso.com/services/financial">
<exposedMethod name="TransferFunds"/>
<exposedMethod name="AddFunds"/>
<exposedMethod name="RemoveFunds"/>
</comContract>
서비스 초기화 시 런타임은 요소 목록에 exposedMethod 포함된 메서드만 반영하고 추가하여 서비스 계약을 생성하려고 시도합니다. 추적은 서비스 계약에 포함되지 않은 모든 인터페이스 메서드에 대해 생성됩니다.
생성자
| Name | Description |
|---|---|
| ComMethodElement() |
ComMethodElement 클래스의 새 인스턴스를 초기화합니다. |
| ComMethodElement(String) |
지정된 메서드를 사용하여 클래스의 ComMethodElement 새 인스턴스를 초기화합니다. |