Visual Basic (Declaration) | |
---|---|
<DataMemberAttribute(Name="CommandText", IsRequired=True)> Public Property CommandText As String |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[DataMemberAttribute(Name="CommandText", IsRequired=true)] public string CommandText {get; set;} |
C++/CLI | |
---|---|
[DataMemberAttribute(Name="CommandText", IsRequired=true)] public: property String^ CommandText { String^ get(); void set (String^ value); } |
Return Value
A String value expresses the command.For an example, refer to DbBinaryData.
- For more information refer to OdbcCommand.CommandText if Provider is set to DbBinaryDataProvider.Odbc.
- For more information refer to OleDbCommand.CommandText if Provider is set to DbBinaryDataProvider.OleDb.
- For more information refer to SqlCommand.CommandText if Provider is set to DbBinaryDataProvider.Sql.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family