PathString.StartsWithSegments 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StartsWithSegments(PathString) |
判斷這個 PathString 實例的開頭是否符合指定的 PathString 。 |
StartsWithSegments(PathString, PathString) |
判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回剩餘的區段。 |
StartsWithSegments(PathString, StringComparison) |
使用指定的比較選項,判斷這個 PathString 實例的開頭是否符合指定的 PathString 。 |
StartsWithSegments(PathString, PathString, PathString) |
判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回相符和剩餘的區段。 |
StartsWithSegments(PathString, StringComparison, PathString) |
使用指定的比較選項來判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回剩餘的區段。 |
StartsWithSegments(PathString, StringComparison, PathString, PathString) |
使用指定的比較選項來判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回相符和剩餘的區段。 |
StartsWithSegments(PathString)
判斷這個 PathString 實例的開頭是否符合指定的 PathString 。
public:
bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other);
public bool StartsWithSegments (Microsoft.AspNetCore.Http.PathString other);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString -> bool
Public Function StartsWithSegments (other As PathString) As Boolean
參數
- other
- PathString
要比較的 PathString。
傳回
如果 value 符合此字串的開頭,則為 true;否則為 false。
適用於
StartsWithSegments(PathString, PathString)
判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回剩餘的區段。
public:
bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments (Microsoft.AspNetCore.Http.PathString other, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * PathString -> bool
Public Function StartsWithSegments (other As PathString, ByRef remaining As PathString) As Boolean
參數
- other
- PathString
要比較的 PathString。
- remaining
- PathString
比對後的其餘區段。
傳回
如果 value 符合此字串的開頭,則為 true;否則為 false。
適用於
StartsWithSegments(PathString, StringComparison)
使用指定的比較選項,判斷這個 PathString 實例的開頭是否符合指定的 PathString 。
public:
bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, StringComparison comparisonType);
public bool StartsWithSegments (Microsoft.AspNetCore.Http.PathString other, StringComparison comparisonType);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * StringComparison -> bool
Public Function StartsWithSegments (other As PathString, comparisonType As StringComparison) As Boolean
參數
- other
- PathString
要比較的 PathString。
- comparisonType
- StringComparison
其中一個列舉值,決定比較這個 PathString 和 值的方式。
傳回
如果 value 符合此字串的開頭,則為 true;否則為 false。
適用於
StartsWithSegments(PathString, PathString, PathString)
判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回相符和剩餘的區段。
public:
bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % matched, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments (Microsoft.AspNetCore.Http.PathString other, out Microsoft.AspNetCore.Http.PathString matched, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * PathString * PathString -> bool
Public Function StartsWithSegments (other As PathString, ByRef matched As PathString, ByRef remaining As PathString) As Boolean
參數
- other
- PathString
要比較的 PathString。
- matched
- PathString
來源值中具有原始大小寫的相符區段。
- remaining
- PathString
比對後的其餘區段。
傳回
如果 value 符合此字串的開頭,則為 true;否則為 false。
適用於
StartsWithSegments(PathString, StringComparison, PathString)
使用指定的比較選項來判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回剩餘的區段。
public:
bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, StringComparison comparisonType, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments (Microsoft.AspNetCore.Http.PathString other, StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * StringComparison * PathString -> bool
Public Function StartsWithSegments (other As PathString, comparisonType As StringComparison, ByRef remaining As PathString) As Boolean
參數
- other
- PathString
要比較的 PathString。
- comparisonType
- StringComparison
其中一個列舉值,決定比較這個 PathString 和 值的方式。
- remaining
- PathString
比對後的其餘區段。
傳回
如果 value 符合此字串的開頭,則為 true;否則為 false。
適用於
StartsWithSegments(PathString, StringComparison, PathString, PathString)
使用指定的比較選項來判斷這個 PathString 實例的開頭是否符合指定的 PathString ,並傳回相符和剩餘的區段。
public:
bool StartsWithSegments(Microsoft::AspNetCore::Http::PathString other, StringComparison comparisonType, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % matched, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Http::PathString % remaining);
public bool StartsWithSegments (Microsoft.AspNetCore.Http.PathString other, StringComparison comparisonType, out Microsoft.AspNetCore.Http.PathString matched, out Microsoft.AspNetCore.Http.PathString remaining);
member this.StartsWithSegments : Microsoft.AspNetCore.Http.PathString * StringComparison * PathString * PathString -> bool
Public Function StartsWithSegments (other As PathString, comparisonType As StringComparison, ByRef matched As PathString, ByRef remaining As PathString) As Boolean
參數
- other
- PathString
要比較的 PathString。
- comparisonType
- StringComparison
其中一個列舉值,決定比較這個 PathString 和 值的方式。
- matched
- PathString
來源值中具有原始大小寫的相符區段。
- remaining
- PathString
比對後的其餘區段。
傳回
如果 value 符合此字串的開頭,則為 true;否則為 false。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應