• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

属性の削除

構文

Java

NewRelic.removeAttribute(string $name)

コトリン [#kotlin]

NewRelic.removeAttribute(name: String?)

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

$name

string

必須項目です。削除したい属性の名前。

戻り値 [#return-values]

正常に記録された場合はtrueを返し、記録されなかった場合はfalseを返します。

[#example]

rateという名前の属性を削除する例を次に示します。

Java [#java]

boolean attributeRemoved = NewRelic.removeAttribute("rate");

コトリン [#kotlin]

val attributeRemoved = NewRelic.removeAttribute("rate")

構文

目的-c

removeAttribute:(NSString*)name;

迅速 [#swift]

NewRelic.removeAttribute(_ name: : String!)-> Bool

説明 [#description]

このメソッドは、名前文字列で指定された属性をセッションから削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

NSString

必須項目です。削除したい属性の名前。

戻り値 [#return-values]

正常に記録された場合はtrueを返し、記録されなかった場合はfalseを返します。

[#examples]

Objective-C [#obj-c]

NSString* という名前の rateで指定されたセッション属性を削除する例を次に示します。

BOOL attributeRemoved = [NewRelic removedAttribute@"rate"];
### Swift [#swift]
Here's an example to remove the session attribute specified by a `string` named `rate`:
```swift
let attributeRemoved = NewRelic.removedAttribute("rate")

構文

removeAttribute(options: { name: string; }) => void

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

string

必須項目です。属性の名前です。

[#example]

NewRelicCapacitorPlugin.removeAttribute({ name: "CapacitorAttribute" });

構文

removeAttribute(name: string): void;

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

string

必須項目です。属性の名前です。

[#example]

NewRelic.removeAttribute({ name: "CordovaAttribute" }); void

構文

RemoveAttribute(string name) : bool;

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

bool

必須項目です。属性の名前です。

[#example]

CrossNewRelic.Current.RemoveAttribute("MAUINumAttr");

構文

removeAttribute(name: string): void;

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

string

必須項目です。属性の名前です。

[#example]

NewrelicMobile.instance.removeAttribute("FlutterCustomAttrNumber");

構文

removeAttribute(name: string): void;

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

string

必須項目です。属性の名前です。

[#example]

NewRelic.removeAttribute('RNCustomAttrNumber');

構文

RemoveAttribute(string name) : bool;

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

string

必須項目です。属性の名前です。

[#example]

NewRelicAgent.RemoveAttribute("UnityCustomAttrNumber");

構文

removeAttribute(FString name) : void;

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

FString

必須項目です。属性の名前です。

[#example]

#include "NewRelicBPLibrary.h"
UNewRelicBPLibrary::removeAttribute("Unreal String");

構文

RemoveAttribute(string name) : bool;

説明 [#description]

このメソッドは、名前文字列で指定された属性を削除します。すべてのカスタム属性を削除する場合は、 「すべての属性を削除する」を参照してください。

パラメーター [#parameters]

パラメータ

タイプ

説明

name

string

必須項目です。属性の名前です。

[#example]

CrossNewRelicClient.Current.RemoveAttribute("XamarinNumAttr");
Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.