MimeTextMatch.Name 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 MimeTextMatch 的名稱。
public:
property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String
屬性值
MimeTextMatch 的名稱。
範例
// Create an OutputBinding.
OutputBinding^ myOutputBinding = gcnew OutputBinding;
// Create a MimeTextBinding.
MimeTextBinding^ myMimeTextBinding = gcnew MimeTextBinding;
// Create a MimeTextMatch.
MimeTextMatch^ myMimeTextMatch = gcnew MimeTextMatch;
MimeTextMatchCollection^ myMimeTextMatchCollection;
// Initialize properties of the MimeTextMatch.
myMimeTextMatch->Name = "Title";
myMimeTextMatch->Type = "*/*";
myMimeTextMatch->Pattern = "'TITLE>(.*?)<";
myMimeTextMatch->IgnoreCase = true;
// Initialize a MimeTextMatchCollection.
myMimeTextMatchCollection = myMimeTextBinding->Matches;
// Add the MimeTextMatch to the MimeTextMatchCollection.
myMimeTextMatchCollection->Add( myMimeTextMatch );
myOutputBinding->Extensions->Add( myMimeTextBinding );
// Add the OutputBinding to the OperationBinding.
myOperationBinding->Output = myOutputBinding;
// Create an OutputBinding.
OutputBinding myOutputBinding = new OutputBinding();
// Create a MimeTextBinding.
MimeTextBinding myMimeTextBinding = new MimeTextBinding();
// Create a MimeTextMatch.
MimeTextMatch myMimeTextMatch = new MimeTextMatch();
MimeTextMatchCollection myMimeTextMatchCollection ;
// Initialize properties of the MimeTextMatch.
myMimeTextMatch.Name = "Title";
myMimeTextMatch.Type = "*/*";
myMimeTextMatch.Pattern = "'TITLE>(.*?)<";
myMimeTextMatch.IgnoreCase = true;
// Initialize a MimeTextMatchCollection.
myMimeTextMatchCollection = myMimeTextBinding.Matches;
// Add the MimeTextMatch to the MimeTextMatchCollection.
myMimeTextMatchCollection.Add( myMimeTextMatch );
myOutputBinding.Extensions.Add( myMimeTextBinding );
// Add the OutputBinding to the OperationBinding.
myOperationBinding.Output = myOutputBinding;
' Create an OutputBinding.
Dim myOutputBinding As New OutputBinding()
' Create a MimeTextBinding.
Dim myMimeTextBinding As New MimeTextBinding()
' Create a MimeTextMatch.
Dim myMimeTextMatch As New MimeTextMatch()
Dim myMimeTextMatchCollection As MimeTextMatchCollection
' Initialize properties of the MimeTextMatch.
myMimeTextMatch.Name = "Title"
myMimeTextMatch.Type = "*/*"
myMimeTextMatch.Pattern = "'TITLE>(.*?)<"
myMimeTextMatch.IgnoreCase = True
' Initialize a MimeTextMatchCollection.
myMimeTextMatchCollection = myMimeTextBinding.Matches
' Add the MimeTextMatch to the MimeTextMatchCollection.
myMimeTextMatchCollection.Add(myMimeTextMatch)
myOutputBinding.Extensions.Add(myMimeTextBinding)
' Add the OutputBinding to the OperationBinding.
myOperationBinding.Output = myOutputBinding