public class ShareProtocols extends Object
| Constructor and Description |
|---|
ShareProtocols() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNfsEnabled() |
boolean |
isSmbEnabled() |
ShareProtocols |
setNfsEnabled(boolean nfs) |
ShareProtocols |
setSmbEnabled(boolean smb) |
String |
toString()
Converts the given protocols to a
String. |
public boolean isSmbEnabled()
public boolean isNfsEnabled()
public ShareProtocols setSmbEnabled(boolean smb)
smb - Enable SMBpublic ShareProtocols setNfsEnabled(boolean nfs)
nfs - Enable NFSpublic String toString()
String.toString in class ObjectString which represents the enabled protocols.IllegalArgumentException - If both SMB and NFS are set.Copyright © 2021 Microsoft Corporation. All rights reserved.