TypedDataSetGenerator.GetProviderName Method

Definition

Returns the first provider name found in the provided input file.

Overloads

GetProviderName(String)

Returns the first provider name found in the provided input file.

GetProviderName(String, String)

Returns the provider name for the tableName in the input file.

Remarks

Returns the provider name.

GetProviderName(String)

Returns the first provider name found in the provided input file.

public:
 static System::String ^ GetProviderName(System::String ^ inputFileContent);
public static string GetProviderName (string inputFileContent);
static member GetProviderName : string -> string
Public Shared Function GetProviderName (inputFileContent As String) As String

Parameters

inputFileContent
String

A string that represents the XML schema to base the DataSet on.

Returns

A string that represents the specific provider for this DataSet.

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

This method returns the first provider name in the specified inputFileContent.

Applies to

GetProviderName(String, String)

Returns the provider name for the tableName in the input file.

public:
 static System::String ^ GetProviderName(System::String ^ inputFileContent, System::String ^ tableName);
public static string GetProviderName (string inputFileContent, string tableName);
static member GetProviderName : string * string -> string
Public Shared Function GetProviderName (inputFileContent As String, tableName As String) As String

Parameters

inputFileContent
String

A string that represents the XML schema to base the DataSet on.

tableName
String

A string that represents the name of the table to return the provider name from.

Returns

A string that represents the provider name for the specific table passed in to the tableName parameter.

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

Returns the provider name for the given tableName in the DataSet.

Applies to