Replaces the text in the buffer with the text supplied in the replacement token.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Sub ReplaceTokens ( _
ByRef buffer As String, _
tokenToReplace As ReplacePairToken _
)
'使用
Dim instance As TokenProcessor
Dim buffer As String
Dim tokenToReplace As ReplacePairToken
instance.ReplaceTokens(buffer, tokenToReplace)
public virtual void ReplaceTokens(
ref string buffer,
ReplacePairToken tokenToReplace
)
public:
virtual void ReplaceTokens(
String^% buffer,
ReplacePairToken^ tokenToReplace
)
public function ReplaceTokens(
buffer : String,
tokenToReplace : ReplacePairToken
)
Parameters
buffer
Type: System.String%The text buffer.
tokenToReplace
Type: Microsoft.VisualStudio.Package.ReplacePairTokenThe ReplacePairToken to replace.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.