編輯

共用方式為


NSString.DetectStringEncoding Method

Definition

Overloads

DetectStringEncoding(NSData, EncodingDetectionOptions, String, Boolean)
DetectStringEncoding(NSData, NSDictionary, String, Boolean)

DetectStringEncoding(NSData, EncodingDetectionOptions, String, Boolean)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static nuint DetectStringEncoding (Foundation.NSData rawData, Foundation.EncodingDetectionOptions options, out string convertedString, out bool usedLossyConversion);
static member DetectStringEncoding : Foundation.NSData * Foundation.EncodingDetectionOptions *  *  -> nuint

Parameters

rawData
NSData
convertedString
String
usedLossyConversion
Boolean

Returns

System.System.UIntPtr System.unativeint
Attributes

Applies to

DetectStringEncoding(NSData, NSDictionary, String, Boolean)

[Foundation.Export("stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static nuint DetectStringEncoding (Foundation.NSData rawData, Foundation.NSDictionary options, out string convertedString, out bool usedLossyConversion);
static member DetectStringEncoding : Foundation.NSData * Foundation.NSDictionary *  *  -> nuint

Parameters

rawData
NSData
options
NSDictionary
convertedString
String
usedLossyConversion
Boolean

Returns

System.System.UIntPtr System.unativeint
Attributes

Applies to