共用方式為


NSString.CommonPrefix(NSString, NSStringCompareOptions) 方法

定義

[Foundation.Export("commonPrefixWithString:options:")]
public virtual Foundation.NSString CommonPrefix (Foundation.NSString aString, Foundation.NSStringCompareOptions options);
abstract member CommonPrefix : Foundation.NSString * Foundation.NSStringCompareOptions -> Foundation.NSString
override this.CommonPrefix : Foundation.NSString * Foundation.NSStringCompareOptions -> Foundation.NSString

參數

aString
NSString

傳回

屬性

適用於