Share via


IDbStoredProcedureManager.GetStoredProcedures Method

Returns a collection of stored procedures for a database.

Namespace:  Microsoft.Web.Management.DatabaseManager
Assembly:  Microsoft.Web.Management.DatabaseManager (in Microsoft.Web.Management.DatabaseManager.dll)

Syntax

'Declaration
Function GetStoredProcedures ( _
    connectionString As String _
) As ICollection(Of StoredProcedure)
'Usage
Dim instance As IDbStoredProcedureManager
Dim connectionString As String
Dim returnValue As ICollection(Of StoredProcedure)

returnValue = instance.GetStoredProcedures(connectionString)
ICollection<StoredProcedure> GetStoredProcedures(
    string connectionString
)
ICollection<StoredProcedure^>^ GetStoredProcedures(
    String^ connectionString
)
function GetStoredProcedures(
    connectionString : String
) : ICollection<StoredProcedure>

Parameters

  • connectionString
    Type: System.String
    The connection string for the database.

Return Value

Type: System.Collections.Generic.ICollection<StoredProcedure>
An ICollection object that contains the list of StoredProcedure objects.

Remarks

All database providers that implement the IDbStoredProcedureManager interface must also implement the GetStoredProcedures method. This method returns a collection of StoredProcedure objects that will be displayed in IIS Manager.

Notes for Implementers

If your provider does not support retrieving stored procedures, you can use the following code sample to raise a not-implemented exception:

public ICollection<StoredProcedure> GetStoredProcedures(string connectionString)

{

   throw new NotImplementedException();

}

Permissions

See Also

Reference

IDbStoredProcedureManager Interface

Microsoft.Web.Management.DatabaseManager Namespace