IVsServiceReferenceMetadataStorageProvider.IsValidNewServiceReferenceName 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值确定 XML web services 引用的名称是否唯一。
public:
void IsValidNewServiceReferenceName(System::String ^ pszStorageType, System::String ^ pszNamespace, System::String ^ pszReferenceName, [Runtime::InteropServices::Out] System::SByte % pbValid, [Runtime::InteropServices::Out] Microsoft::VisualStudio::WCFReference::Interop::StorageNameValidationState % pValidationState, [Runtime::InteropServices::Out] System::String ^ % pbstrMessage);
void IsValidNewServiceReferenceName(std::wstring const & pszStorageType, std::wstring const & pszNamespace, std::wstring const & pszReferenceName, [Runtime::InteropServices::Out] SByte & pbValid, [Runtime::InteropServices::Out] Microsoft::VisualStudio::WCFReference::Interop::StorageNameValidationState & pValidationState, [Runtime::InteropServices::Out] std::wstring const & & pbstrMessage);
public void IsValidNewServiceReferenceName (string pszStorageType, string pszNamespace, string pszReferenceName, out sbyte pbValid, out Microsoft.VisualStudio.WCFReference.Interop.StorageNameValidationState pValidationState, out string pbstrMessage);
abstract member IsValidNewServiceReferenceName : string * string * string * sbyte * StorageNameValidationState * string -> unit
Public Sub IsValidNewServiceReferenceName (pszStorageType As String, pszNamespace As String, pszReferenceName As String, ByRef pbValid As SByte, ByRef pValidationState As StorageNameValidationState, ByRef pbstrMessage As String)
参数
- pszStorageType
- String
ServiceReferenceTypeXML web services 引用的。
- pszNamespace
- String
包含引用的命名空间的字符串。
- pszReferenceName
- String
一个包含引用名称的字符串。
- pbValid
- SByte
如果名称有效,则为 true;否则为 false。
- pValidationState
- StorageNameValidationState
- pbstrMessage
- String
包含错误消息的字符串。 可以为 Null。