Compartilhar via


DataConnectionProperties.ReadNameFromString(String, Int32) Method

Definition

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

protected:
 virtual System::String ^ ReadNameFromString(System::String ^ connectionString, int % index);
protected virtual string ReadNameFromString (string connectionString, ref int index);
abstract member ReadNameFromString : string * int -> string
override this.ReadNameFromString : string * int -> string
Protected Overridable Function ReadNameFromString (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 into this connection string indicating where to start reading the property name.

Returns

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

Exceptions

The connectionString parameter is null.

Applies to