Type Property (RegisteredSubscriber)
Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.
The Type property exposes configured attributes of the referenced Microsoft SQL Server component.
Syntaxe
object
.Type [= value]
Parts
- object
An expression that evaluates to an object in the Applies To list.
- value
A long integer that specifies a data source type as described in Settings.
Data Type
Long, enumerated
Modifiable
Read/write when using the RegisteredSubscriber object to define a replication Subscriber. Read-only when the RegisteredSubscriber object references an existing Subscriber definition record.
Prototype (C/C++)
HRESULT GetType(SQLDMO_SUBSCRIBER_TYPE* pRetVal)
HRESULT SetType(SQLDMO_SUBSCRIBER_TYPE NewValue)
Settings
Set value using these SQLDMO_SUBSCRIBER_TYPE values.
Constant | Value | Description |
---|---|---|
SQLDMOSubInfo_/ExchangeServer |
4 |
The Type property of the RegisteredSubscriber object that identifies a Microsoft Exchange Server installation persisted as a SQL Server linked server. |
SQLDMOSubInfo_JetDatabase |
2 |
The Name property of the RegisteredSubscriber object that identifies a Microsoft Jet version 3.5 database. |
SQLDMOSubInfo_/ODBCDatasource |
1 |
The Name property of the RegisteredSubscriber object that identifies an ODBC user or system data source name. |
SQLDMOSubInfo_/OLEDBDatasource |
3 |
The Type property of the RegisteredSubscriber object that identifies an OLE DB data source specification, or the Microsoft Jet version 4.0 database persisted as a SQL Server linked server. |
SQLDMOSubInfo_SQLServer |
0 |
The Name property of the RegisteredSubscriber object that identifies an instance of SQL Server by SQL Server name. |