Share via


MSFT_OdbcDsn class

ODBC DSN Instance Provider.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Version("1.0"), AMENDMENT]
class MSFT_OdbcDsn
{
  string                Name;
  string                DsnType;
  string                Platform;
  string                DriverName;
  MSFT_OdbcKeyValuePair KeyValuePair[];
};

Members

The MSFT_OdbcDsn class has these types of members:

Properties

The MSFT_OdbcDsn class has these properties.

DriverName

Data type: string

Access type: Read-only

Qualifiers: MaxLen (255)

The name of the ODBC driver for this DSN.

DsnType

Data type: string

Access type: Read-only

Qualifiers: key

Either 'User' or 'System'.

KeyValuePair

Data type: MSFT_OdbcKeyValuePair array

Access type: Read-only

Qualifiers: EmbeddedInstance ("MSFT_OdbcKeyValuePair")

An array of MSFT_OdbcKeyValuePair classes that represent the key-value pairs of the ODBC DSN.

Name

Data type: string

Access type: Read-only

Qualifiers: key, MaxLen (32)

Name of an ODBC DSN.

Platform

Data type: string

Access type: Read-only

Qualifiers: key

One of '32-bit', '64-bit', '32/64-bit' or 'Unknown Platform'.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\WDAC
MOF
WdacWmiProv.mof
DLL
WdacWmiProv.dll

See also

WDAC WMI Provider Reference

MSFT_OdbcKeyValuePair