---
schema_version: "1"
id: 71116563876e742207de60968b5da42329709258e3197bba1c2c69360e9b5d65
title: p
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-mule-functions-p.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-mule-functions-p
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 743627e1ecc0f7d48aa567e28390c2fe987da737e30916a79a6055fd29ad5dc9
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# p

## [](#p1)p(String): String

この関数は、Mule プロパティプレースホルダー、システムプロパティ、または環境変数のいずれかの入力プロパティの値を識別する文字列を返します。

プロパティが設定されていない場合やプロパティが見つからない場合は、​`p`​ 関数は ​`null`​ 値を返します。

このトピックについての詳細は、 [「プロパティの設定」](https://docs.mulesoft.com/mule-runtime/latest/configuring-properties)​を参照してください。

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

<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>

### [](#例)例

次の例では、Logger コンポーネントでプロパティ ​`http.port`​ の値を記録します。

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

```xml
<flow name="simple">
 <logger level="INFO" doc:name="Logger"
   message="#[Mule::p('http.port')]"/>
</flow>
```

### [](#例-2)例

次の例は、Amazon S3 から画像を取得するための Amazon S3 Connector 接続のパスワード設定を示しています。​`p`​ 関数は、​`secure::accessKey`​ および ​`secure::secretKey`​ プロパティの値を識別する文字列を返します。​`secure::`​ プレフィックスは、Mule セキュア設定プロパティにアクセスするために使用されます。

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

```xml
<flow name="simple">
 <s3:config name="Amazon_S3_Configuration" doc:name="Amazon S3 Configuration">
     <s3:basic-connection
       accessKey="#[Mule::p('secure::accessKey')]"
       secretKey="#[Mule::p('secure::secretKey')]"/>
   </s3:config>
 <s3:get-object config-ref="Amazon_S3_Configuration" bucketName="myBucket" key="maxImages/maxthemule.jpg"
     doc:name="Get object"/>
</flow>
```