IVsASMXMetadataStorageProvider.AddWebReference Method
Adds the metadata to a project for reference to a Web service (.asmx) that uses ASP.NET.
Namespace: Microsoft.VisualStudio.WCFReference.Interop
Assembly: Microsoft.VisualStudio.WCFReference.Interop (in Microsoft.VisualStudio.WCFReference.Interop.dll)
Syntax
'宣告
Function AddWebReference ( _
pszUrl As String, _
pszSuggestName As String, _
pDiscoveryResult As IDiscoveryResult _
) As String
string AddWebReference(
string pszUrl,
string pszSuggestName,
IDiscoveryResult pDiscoveryResult
)
String^ AddWebReference(
[InAttribute] String^ pszUrl,
[InAttribute] String^ pszSuggestName,
[InAttribute] IDiscoveryResult^ pDiscoveryResult
)
abstract AddWebReference :
pszUrl:string *
pszSuggestName:string *
pDiscoveryResult:IDiscoveryResult -> string
function AddWebReference(
pszUrl : String,
pszSuggestName : String,
pDiscoveryResult : IDiscoveryResult
) : String
Parameters
- pszUrl
Type: String
A string that contains the URL for the reference.
- pszSuggestName
Type: String
A string that contains the suggested namespace for the reference.
- pDiscoveryResult
Type: Microsoft.VisualStudio.Shell.Interop.IDiscoveryResult
An IDiscoveryResult that contains the metadata for the reference.
Return Value
Type: String
A string that contains the actual namespace for the reference.
Remarks
To avoid potential namespace conflicts, call the IsValidNewASMXReferenceName method before you call this method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.