UriParser.OnRegister(String, Int32) 方法

定义

在注册 UriParser 方法时由 Framework 调用。Invoked by the Framework when a UriParser method is registered.

protected:
 virtual void OnRegister(System::String ^ schemeName, int defaultPort);
protected virtual void OnRegister (string schemeName, int defaultPort);
abstract member OnRegister : string * int -> unit
override this.OnRegister : string * int -> unit
Protected Overridable Sub OnRegister (schemeName As String, defaultPort As Integer)

参数

schemeName
String

与此 UriParser 关联的方案。The scheme that is associated with this UriParser.

defaultPort
Int32

方案的端口号。The port number of the scheme.

适用于