DataConnectionProperties.ReadKeyFromString(String, Int32) Method

Definition

Reads a property key name from a connection string starting at a specified index, and then updates the index to point to a position immediately following the property key name.

protected:
 virtual System::String ^ ReadKeyFromString(System::String ^ connectionString, int % index);
protected virtual string ReadKeyFromString (string connectionString, ref int index);
abstract member ReadKeyFromString : string * int -> string
override this.ReadKeyFromString : string * int -> string
Protected Overridable Function ReadKeyFromString (connectionString As String, ByRef index As Integer) As String

Parameters

connectionString
String

A connection string in a format recognized by the current DataConnectionProperties instance.

index
Int32

An index in this connection string indicating where to start reading the property name.

Returns

The substring of the connectionString parameter that represents the property key name, between the input starting index and the end of the property key name.

Exceptions

The connectionString parameter is null.

The index parameter is less than zero or greater than the length of the connection string.

Applies to