AdminException Constructor (String, Exception, String )
Creates an exception for the specified error code.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Common
Assembly: Microsoft.SharePoint.Search.Extended.Administration.Common (in Microsoft.SharePoint.Search.Extended.Administration.Common.dll)
Syntax
'Declaration
Public Sub New ( _
errorCode As String, _
inner As Exception, _
ParamArray values As String() _
)
'Usage
Dim errorCode As String
Dim inner As Exception
Dim values As String()
Dim instance As New AdminException(errorCode, _
inner, values)
public AdminException(
string errorCode,
Exception inner,
params string[] values
)
Parameters
errorCode
Type: System.StringOne of the error codes defined in ErrorCodeRes.
inner
Type: System.ExceptionThe exception that caused this error condition.
values
Type: []Optional array of strings that is used to create the error message.
Exceptions
Exception | Condition |
---|---|
ArgumentException | If the error code does not exist or the number of provided values is wrong. |
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Common Namespace