Share via


IVsASMXMetadataStorageProvider.IsValidNewASMXReferenceName Method

Returns a value that determines whether a namespace for a reference to a Web service (asmx) that uses ASP.NET is unique.

Namespace:  Microsoft.VisualStudio.WCFReference.Interop
Assembly:  Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)

Syntax

'Declaration
Function IsValidNewASMXReferenceName ( _
    pszNewName As String _
) As Integer
int IsValidNewASMXReferenceName(
    string pszNewName
)
int IsValidNewASMXReferenceName(
    [InAttribute] String^ pszNewName
)
abstract IsValidNewASMXReferenceName : 
        pszNewName:string -> int
function IsValidNewASMXReferenceName(
    pszNewName : String
) : int

Parameters

  • pszNewName
    Type: System.String

    A string that contains the namespace for the reference.

Return Value

Type: System.Int32
0 if the namespace already exists; otherwise a non-zero Integer.

Remarks

Call this method before you add an .asmx Web service reference to potential namespace conflicts.

.NET Framework Security

See Also

Reference

IVsASMXMetadataStorageProvider Interface

Microsoft.VisualStudio.WCFReference.Interop Namespace