IMoniker.ParseDisplayName(IBindCtx, IMoniker, String, Int32, IMoniker) 方法
定义
读取指定的显示名称中 ParseDisplayName(IBindCtx, IMoniker, String, Int32, IMoniker) 能够理解的全部字符并生成一个与读取的部分相对应的名字对象。Reads as many characters of the specified display name as the ParseDisplayName(IBindCtx, IMoniker, String, Int32, IMoniker) understands and builds a moniker corresponding to the portion read.
public:
void ParseDisplayName(System::Runtime::InteropServices::ComTypes::IBindCtx ^ pbc, System::Runtime::InteropServices::ComTypes::IMoniker ^ pmkToLeft, System::String ^ pszDisplayName, [Runtime::InteropServices::Out] int % pchEaten, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::IMoniker ^ % ppmkOut);
public void ParseDisplayName (System.Runtime.InteropServices.ComTypes.IBindCtx pbc, System.Runtime.InteropServices.ComTypes.IMoniker pmkToLeft, string pszDisplayName, out int pchEaten, out System.Runtime.InteropServices.ComTypes.IMoniker ppmkOut);
abstract member ParseDisplayName : System.Runtime.InteropServices.ComTypes.IBindCtx * System.Runtime.InteropServices.ComTypes.IMoniker * string * int * IMoniker -> unit
Public Sub ParseDisplayName (pbc As IBindCtx, pmkToLeft As IMoniker, pszDisplayName As String, ByRef pchEaten As Integer, ByRef ppmkOut As IMoniker)
参数
- pbc
- IBindCtx
对要在此绑定操作中使用的绑定上下文的引用。A reference to the bind context to use in this binding operation.
- pmkToLeft
- IMoniker
对迄今为止已经从显示名称生成的名字对象的引用。A reference to the moniker that has been built from the display name up to this point.
- pszDisplayName
- String
对包含要分析的剩余显示名称的字符串的引用。A reference to the string containing the remaining display name to parse.
- pchEaten
- Int32
此方法返回时,包含分析 pszDisplayName 时所使用的字符数。When this method returns, contains the number of characters that were consumed in parsing pszDisplayName. 此参数未经初始化即被传递。This parameter is passed uninitialized.
- ppmkOut
- IMoniker
此方法返回时,包含对从 pszDisplayName 生成的名字对象的引用。When this method returns, contains a reference to the moniker that was built from pszDisplayName. 此参数未经初始化即被传递。This parameter is passed uninitialized.
注解
有关详细信息,请参阅 IMoniker::P arsedisplayname 方法。For more information, see IMoniker::ParseDisplayName method.