PeerResolverMode PeerResolverMode PeerResolverMode PeerResolverMode Enum

定义

确定正在使用的对等解析程序的类型。Determines the type of peer resolver being used.

public enum class PeerResolverMode
public enum PeerResolverMode
type PeerResolverMode = 
Public Enum PeerResolverMode
继承
PeerResolverModePeerResolverModePeerResolverModePeerResolverMode

字段

Auto Auto Auto Auto 0

利用绑定上所设置的信息,自动确定要使用的解析程序的类型。Automatically determines the type of resolver to use from the information set on the binding.

Custom Custom Custom Custom 2

使用自定义解析程序。A custom resolver is used.

Pnrp Pnrp Pnrp Pnrp 1

使用 PNRP 解析程序。The PNRP resolver is used.

注解

如果指定的对等解析程序不可用InvalidOperationException , 则在尝试使用解析程序时, 将引发。If the specified peer resolver is unavailable, an InvalidOperationException will be thrown when an attempt to use the resolver is made.

如果Auto指定了, 则使用自定义冲突解决程序 (如果有)。If Auto is specified, a custom resolver is used, if one is available. 如果不可用,则使用 PNRP 对等解析程序。If one is unavailable, the PNRP peer resolver is used. 如果在对等解析程序上设置 PeerCustomResolverSettings.AddressPeerCustomResolverSettings.Binding 属性,则该对等解析程序将被视为“可用”。A peer resolver is considered "available" if the PeerCustomResolverSettings.Address and PeerCustomResolverSettings.Binding properties are set on it.

适用于