System.Data.SqlTypes.SQLResource.InvalidOpStreamClosed C# (CSharp) Method

InvalidOpStreamClosed() static private method

static private InvalidOpStreamClosed ( string method ) : string
method string
return string
        internal static string InvalidOpStreamClosed(string method)
        {
            return SR.Format(SR.SqlMisc_InvalidOpStreamClosed, method);
        }

Usage Example

 private void ThrowIfStreamClosed(string method)
 {
     if (this.IsStreamClosed())
     {
         throw new ObjectDisposedException(SQLResource.InvalidOpStreamClosed(method));
     }
 }