UCOMIMoniker.ParseDisplayName(UCOMIBindCtx, UCOMIMoniker, String, Int32, UCOMIMoniker) 方法

定义

读取指定的显示名称中它能够理解的全部字符并生成一个与读取的部分相对应的名字对象。Reads as many characters of the specified display name as it understands and builds a moniker corresponding to the portion read.

public:
 void ParseDisplayName(System::Runtime::InteropServices::UCOMIBindCtx ^ pbc, System::Runtime::InteropServices::UCOMIMoniker ^ pmkToLeft, System::String ^ pszDisplayName, [Runtime::InteropServices::Out] int % pchEaten, [Runtime::InteropServices::Out] System::Runtime::InteropServices::UCOMIMoniker ^ % ppmkOut);
public void ParseDisplayName (System.Runtime.InteropServices.UCOMIBindCtx pbc, System.Runtime.InteropServices.UCOMIMoniker pmkToLeft, string pszDisplayName, out int pchEaten, out System.Runtime.InteropServices.UCOMIMoniker ppmkOut);
abstract member ParseDisplayName : System.Runtime.InteropServices.UCOMIBindCtx * System.Runtime.InteropServices.UCOMIMoniker * string * int * UCOMIMoniker -> unit
Public Sub ParseDisplayName (pbc As UCOMIBindCtx, pmkToLeft As UCOMIMoniker, pszDisplayName As String, ByRef pchEaten As Integer, ByRef ppmkOut As UCOMIMoniker)

参数

pbc
UCOMIBindCtx

对要在此绑定操作中使用的绑定上下文的引用。A reference to the bind context to be used in this binding operation.

pmkToLeft
UCOMIMoniker

对迄今为止已经从显示名称生成的名字对象的引用。A reference to the moniker that has been built out of the display name up to this point.

pszDisplayName
String

对包含要分析的剩余显示名称的字符串的引用。A reference to the string containing the remaining display name to parse.

pchEaten
Int32

成功返回时,包含在此步骤中使用的 pszDisplayName 中的字符数。On successful return, contains the number of characters in pszDisplayName that were consumed in this step.

ppmkOut
UCOMIMoniker

对从 pszDisplayName 生成的名字对象的引用。Reference to the moniker that was built from pszDisplayName.

注解

有关 IMoniker::ParseDisplayName 的详细信息,请参阅 MSDN Library。For more information about IMoniker::ParseDisplayName, see the MSDN Library.

适用于