---
schema_version: "1"
id: ac2b1d5bf81eb67dcd82da7ae6a08f9d8d932b77a109b72f6019524694077217
title: prop
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-runtime-functions-prop.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-runtime-functions-prop
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8d663909ad5fa317ab7cfa2283e7b1b0f9c757f2fe353102d30243253cb260a5
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# prop

## [](#prop1)prop(propertyName: String): String | Null

指定された名前のプロパティの値を返すか、プロパティが定義されていない場合は ​`null`​ を返します。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>propertyName</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">取得するプロパティ。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、​`user.timezone`​ プロパティを取得します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::Runtime
output application/dw
---
{ "props" : prop("user.timezone") }
```

#### [](#出力)出力

```JSON
{ props: "America/Los_Angeles" as String {class: "java.lang.String"} }
```