EventLoader.EventSchema Property
Sets the event schema for the EventLoader object.
네임스페이스: Microsoft.SqlServer.NotificationServices
어셈블리: Microsoft.SqlServer.NotificationServices (in microsoft.sqlserver.notificationservices.dll)
구문
‘선언
Public Property EventSchema As String
public string EventSchema { get; set; }
public:
property String^ EventSchema {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_EventSchema ()
/** @property */
public void set_EventSchema (String value)
public function get EventSchema () : String
public function set EventSchema (value : String)
주의
This property expects a string representing the path and name of a SQL-annotated XML schema file. This schema file must contain the event class schema, and is used to map the event data in the XML document to the event fields.
예
The following example shows how to map the event element to the event class named MyEventClassName. The StockSymbol and StockPrice elements are mapped to event fields of the same name.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sql="urn:schemas-microsoft-com:mapping-schema">
<xsd:element name="event" sql:relation="MyEventClassName">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="StockSymbol" type="xsd:string" />
<xsd:element name="StockPrice" type="xsd:float" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
EventLoader Class
EventLoader Members
Microsoft.SqlServer.NotificationServices Namespace